Skip to content

Commit

Permalink
Merge pull request #707 from mixpanel/zihe-fix-crash-routeIntent
Browse files Browse the repository at this point in the history
fix crash MixpanelNotificationRouteActivity.handleRouteIntent
  • Loading branch information
zihejia authored Sep 23, 2020
2 parents baec0a0 + 743993d commit 1b8a377
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 1b8a377

Please sign in to comment.