1

getting null pointer exception on using savedInstanceState.getInt( "Phase", 1 );?

view story
linux-howto

http://stackoverflow.com – I'm getting null pointer exception on this line inside OnCreate function: int Phase = savedInstanceState.getInt( "Phase", 1 ); 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? (HowTos)