mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-02 20:46:15 +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,18 +2260,19 @@ 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 ) {
|
||||||
if ( null != btAddr ) {
|
intent.putExtra( REMATCH_ADDRS_EXTRA, addrTypes.toInt() ); // here
|
||||||
intent.putExtra( REMATCH_BTADDR_EXTRA, btAddr );
|
if ( null != btAddr ) {
|
||||||
}
|
intent.putExtra( REMATCH_BTADDR_EXTRA, btAddr );
|
||||||
if ( null != phone ) {
|
}
|
||||||
intent.putExtra( REMATCH_PHONE_EXTRA, phone );
|
if ( null != phone ) {
|
||||||
}
|
intent.putExtra( REMATCH_PHONE_EXTRA, phone );
|
||||||
if ( null != relayID ) {
|
}
|
||||||
intent.putExtra( REMATCH_RELAYID_EXTRA, relayID );
|
if ( null != relayID ) {
|
||||||
|
intent.putExtra( REMATCH_RELAYID_EXTRA, relayID );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return intent;
|
return intent;
|
||||||
|
|
Loading…
Add table
Reference in a new issue