Skip to content

Commit

Permalink
Merge pull request #2392 from hannesa2/CrashFix
Browse files Browse the repository at this point in the history
Fix a crash in AuthenticatorActivity
  • Loading branch information
davigonz committed Dec 12, 2018
2 parents 84c03ba + 1e9eb71 commit 8b1405a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -343,7 +343,7 @@ protected void onCreate(Bundle savedInstanceState) {
@Override
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
if(intent.getAction().equals(ACTION_VIEW)) {
if (intent != null && intent.getAction() != null && intent.getAction().equals(ACTION_VIEW)) {
getOAuth2AccessTokenFromCapturedRedirection(intent.getData());
}
}
Expand Down

0 comments on commit 8b1405a

Please sign in to comment.