mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
fix NPE I got once, presumably when activity shutting down.
This commit is contained in:
parent
f03699f701
commit
03543c17ea
1 changed files with 2 additions and 1 deletions
|
@ -507,7 +507,8 @@ public class BoardActivity extends XWActivity
|
|||
|
||||
// For now undo-last can crash the app or break a game in
|
||||
// networked case. Disable until this is fixed.
|
||||
if ( m_gi.serverRole != DeviceRole.SERVER_STANDALONE ) {
|
||||
if ( null != m_gi
|
||||
&& m_gi.serverRole != DeviceRole.SERVER_STANDALONE ) {
|
||||
menu.removeItem( R.id.board_menu_undo_last );
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue