diff --git a/src/android/com/plugin/gcm/GCMIntentService.java b/src/android/com/plugin/gcm/GCMIntentService.java index cd95a621..7d8df34a 100644 --- a/src/android/com/plugin/gcm/GCMIntentService.java +++ b/src/android/com/plugin/gcm/GCMIntentService.java @@ -82,7 +82,7 @@ protected void onMessage(Context context, Intent intent) { } // Send a notification if there is a message - if (message && message.length() != 0) { + if (message != null && message.length() != 0) { createNotification(context, extras); } }