Skip to content

Commit

Permalink
fix crash MixpanelNotificationRouteActivity.handleRouteIntent
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed Sep 16, 2020
1 parent 8c2fa84 commit 386e5bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected void onCreate(Bundle savedInstanceState) {
}

protected Intent handleRouteIntent(Intent routeIntent) {
CharSequence actionTypeChars = routeIntent.getExtras().getCharSequence("mp_tap_action_type");
CharSequence actionTypeChars = routeIntent.getExtras() != null ? routeIntent.getExtras().getCharSequence("mp_tap_action_type") : null;
PushTapActionType target;
if (null == actionTypeChars) {
MPLog.d(LOGTAG, "Notification action click logged with no action type");
Expand Down

0 comments on commit 386e5bb

Please sign in to comment.