From 2207ddafec8f974e3f64c05e82cfdc65f4b94e98 Mon Sep 17 00:00:00 2001 From: Ruben Stolk Date: Tue, 4 Aug 2015 18:47:44 +0530 Subject: [PATCH] Update GCMIntentService.java --- src/android/com/plugin/gcm/GCMIntentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }