fix NPE rematching standalone games

This commit is contained in:
Eric House 2015-07-11 17:30:43 -07:00
parent 7ac5d2259d
commit a96afb2892

View file

@ -2260,10 +2260,10 @@ public class GamesListDelegate extends ListDelegateBase
{ {
Intent intent = null; Intent intent = null;
if ( XWApp.REMATCH_SUPPORTED ) { if ( XWApp.REMATCH_SUPPORTED ) {
DbgUtils.logf( "makeRematchIntent(btAddr=%s; phone=%s)", btAddr, phone );
intent = makeSelfIntent( context ); intent = makeSelfIntent( context );
intent.putExtra( REMATCH_ROWID_EXTRA, rowid ); intent.putExtra( REMATCH_ROWID_EXTRA, rowid );
intent.putExtra( REMATCH_ADDRS_EXTRA, addrTypes.toInt() ); if ( null != addrTypes ) {
intent.putExtra( REMATCH_ADDRS_EXTRA, addrTypes.toInt() ); // here
if ( null != btAddr ) { if ( null != btAddr ) {
intent.putExtra( REMATCH_BTADDR_EXTRA, btAddr ); intent.putExtra( REMATCH_BTADDR_EXTRA, btAddr );
} }
@ -2274,6 +2274,7 @@ public class GamesListDelegate extends ListDelegateBase
intent.putExtra( REMATCH_RELAYID_EXTRA, relayID ); intent.putExtra( REMATCH_RELAYID_EXTRA, relayID );
} }
} }
}
return intent; return intent;
} }