mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
fix NPE and remove assertion: moving from anon to GCM-based relayID is
common
This commit is contained in:
parent
3c2a56166c
commit
ed8d2ba0f6
1 changed files with 3 additions and 3 deletions
|
@ -94,9 +94,9 @@ public class DevID {
|
||||||
DbgUtils.logdf( "DevID.setRelayDevID()" );
|
DbgUtils.logdf( "DevID.setRelayDevID()" );
|
||||||
if ( BuildConfig.DEBUG ) {
|
if ( BuildConfig.DEBUG ) {
|
||||||
String oldID = getRelayDevID( context );
|
String oldID = getRelayDevID( context );
|
||||||
if ( 0 < oldID.length() && ! devID.equals( oldID ) ) {
|
if ( null != oldID && 0 < oldID.length()
|
||||||
DbgUtils.logf( "devID changing!!!: %s => %s", oldID, devID );
|
&& ! devID.equals( oldID ) ) {
|
||||||
Assert.fail();
|
DbgUtils.logdf( "devID changing!!!: %s => %s", oldID, devID );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DBUtils.setStringFor( context, DEVID_KEY, devID );
|
DBUtils.setStringFor( context, DEVID_KEY, devID );
|
||||||
|
|
Loading…
Reference in a new issue