mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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 );
|
||||
if ( ! curID.equals( regId ) ) {
|
||||
if ( null == curID || ! curID.equals( regId ) ) {
|
||||
XWPrefs.setGCMDevID( app, regId );
|
||||
}
|
||||
} catch ( UnsupportedOperationException uoe ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue