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 18, 2020
1 parent 8c2fa84 commit 743993d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

final Intent routeIntent = getIntent();
Bundle extras = routeIntent.getExtras();

if (null == routeIntent) {
MPLog.d(LOGTAG, "Notification route activity given null intent.");
if (null == routeIntent || null == routeIntent.getExtras()) {
MPLog.d(LOGTAG, "Notification route activity given null intent or null extras.");
return;
}

Bundle extras = routeIntent.getExtras();

trackTapAction(routeIntent);

final Intent notificationIntent = handleRouteIntent(routeIntent);
Expand Down

0 comments on commit 743993d

Please sign in to comment.