getting null pointer exception on using savedInstanceState.getInt( "Phase", 1 );?
<p>I'm getting null pointer exception on this line inside OnCreate function:</p>

<pre><code>int Phase = savedInstanceState.getInt( "Phase", 1 );
</code></pre>

<p>According to what I read, this function should return the value associated with "Phase" or 1 if no mapping exits for the key "Phase". However for some reason I'm getting this exception, any ideas as to why this is happening?</p>
