Fix (by inspection) NPE reported to google: test for null lock before

trying to save its game. Also remove empty overridden method.
This commit is contained in:
Eric House 2014-10-14 06:31:57 -07:00
parent c73eec567b
commit 5c4242ac62

View file

@ -431,11 +431,6 @@ public class GameConfigDelegate extends DelegateBase
m_smartnessSpinner = (Spinner)findViewById( R.id.smart_robot ); m_smartnessSpinner = (Spinner)findViewById( R.id.smart_robot );
} // init } // init
protected void onStart()
{
loadGame();
}
@Override @Override
protected void onResume() protected void onResume()
{ {
@ -1112,7 +1107,10 @@ public class GameConfigDelegate extends DelegateBase
private void applyChanges( boolean forceNew ) private void applyChanges( boolean forceNew )
{ {
GameUtils.applyChanges( m_activity, m_gi, m_car, m_gameLock, forceNew ); if ( null != m_gameLock ) {
GameUtils.applyChanges( m_activity, m_gi, m_car, m_gameLock,
forceNew );
}
} }
private void launchGame() private void launchGame()