Skip to content

Commit 8d692d3

Browse files
committed
fix(notifications): null check for intent extras
1 parent d2ce06e commit 8d692d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AndroidSDK/src/com/leanplum/LeanplumLocalPushListenerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected void onHandleIntent(Intent intent) {
4747
return;
4848
}
4949
Bundle extras = intent.getExtras();
50-
if (!extras.isEmpty() && extras.containsKey(Constants.Keys.PUSH_MESSAGE_TEXT)) {
50+
if (extras != null && extras.containsKey(Constants.Keys.PUSH_MESSAGE_TEXT)) {
5151
LeanplumPushService.handleNotification(this, extras);
5252
}
5353
} catch (Throwable t) {

0 commit comments

Comments
 (0)