mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
NPE: don't crash on first install
This commit is contained in:
parent
b0f85e02df
commit
ba733634cb
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class GCMIntentService extends GCMBaseIntentService {
|
||||||
}
|
}
|
||||||
|
|
||||||
String curID = XWPrefs.getGCMDevID( app );
|
String curID = XWPrefs.getGCMDevID( app );
|
||||||
if ( ! curID.equals( regId ) ) {
|
if ( null == curID || ! curID.equals( regId ) ) {
|
||||||
XWPrefs.setGCMDevID( app, regId );
|
XWPrefs.setGCMDevID( app, regId );
|
||||||
}
|
}
|
||||||
} catch ( UnsupportedOperationException uoe ) {
|
} catch ( UnsupportedOperationException uoe ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue