NPE: don't crash on first install

This commit is contained in:
Eric House 2012-11-09 06:57:37 -08:00
parent b0f85e02df
commit ba733634cb

View file

@ -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 ) {