Skip to content

Commit

Permalink
Merge pull request #505 from edenman/dev
Browse files Browse the repository at this point in the history
Don't crash if REQUEST_KEY bundle is null
  • Loading branch information
abeatte authored Aug 31, 2017
2 parents c491bb4 + 482ad05 commit a98fb74
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions facebook/src/main/java/com/facebook/login/LoginFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ public void onCompleted(LoginClient.Result outcome) {
}

initializeCallingPackage(activity);
if (activity.getIntent() != null) {
Intent intent = activity.getIntent();
Intent intent = activity.getIntent();
if (intent != null) {
Bundle bundle = intent.getBundleExtra(REQUEST_KEY);
request = bundle.getParcelable(EXTRA_REQUEST);
if (bundle != null) {
request = bundle.getParcelable(EXTRA_REQUEST);
}
}
}

Expand Down

0 comments on commit a98fb74

Please sign in to comment.