mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
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:
parent
c73eec567b
commit
5c4242ac62
1 changed files with 4 additions and 6 deletions
|
@ -431,11 +431,6 @@ public class GameConfigDelegate extends DelegateBase
|
|||
m_smartnessSpinner = (Spinner)findViewById( R.id.smart_robot );
|
||||
} // init
|
||||
|
||||
protected void onStart()
|
||||
{
|
||||
loadGame();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume()
|
||||
{
|
||||
|
@ -1112,7 +1107,10 @@ public class GameConfigDelegate extends DelegateBase
|
|||
|
||||
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()
|
||||
|
|
Loading…
Add table
Reference in a new issue