don't launch intent if null

This commit is contained in:
Eric House 2014-01-23 07:46:58 -08:00
parent 1b185d1575
commit 710f9c68ff

View file

@ -2288,9 +2288,11 @@ public class BoardActivity extends XWActivity
private void doRematch() private void doRematch()
{ {
Intent intent = GamesList.makeRematchIntent( this, m_gi, m_rowid ); Intent intent = GamesList.makeRematchIntent( this, m_gi, m_rowid );
if ( null != intent ) {
startActivity( intent ); startActivity( intent );
finish(); finish();
} }
}
private Button setListenerOrHide( int id ) private Button setListenerOrHide( int id )
{ {