Skip to content

Commit 78293a9

Browse files
committed
fix(Push): add null checker at LeanplumPushService.openNotification method.
1 parent 6a0cc44 commit 78293a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AndroidSDK/src/com/leanplum/LeanplumPushService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ static void openNotification(Context context, Intent intent) {
408408

409409
if (shouldStartActivity) {
410410
Intent actionIntent = getActionIntent(context);
411+
if (actionIntent == null) {
412+
return;
413+
}
411414
actionIntent.putExtras(notification);
412415
actionIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
413416
context.startActivity(actionIntent);

0 commit comments

Comments
 (0)