mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
fix NPE rematching standalone games
This commit is contained in:
parent
7ac5d2259d
commit
a96afb2892
1 changed files with 11 additions and 10 deletions
|
@ -2260,10 +2260,10 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
{
|
||||
Intent intent = null;
|
||||
if ( XWApp.REMATCH_SUPPORTED ) {
|
||||
DbgUtils.logf( "makeRematchIntent(btAddr=%s; phone=%s)", btAddr, phone );
|
||||
intent = makeSelfIntent( context );
|
||||
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 ) {
|
||||
intent.putExtra( REMATCH_BTADDR_EXTRA, btAddr );
|
||||
}
|
||||
|
@ -2274,6 +2274,7 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
intent.putExtra( REMATCH_RELAYID_EXTRA, relayID );
|
||||
}
|
||||
}
|
||||
}
|
||||
return intent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue