Skip to content

Commit

Permalink
Merge pull request #387 from pschlang/fix-connect-nullptr
Browse files Browse the repository at this point in the history
Prevent crash in connect() when both intent and savedIntent are null
  • Loading branch information
don authored Apr 7, 2020
2 parents 3e5287f + 44bf984 commit da3ae2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ private void connect(final String tech, final int timeout, final CallbackContext
try {

Tag tag = getIntent().getParcelableExtra(NfcAdapter.EXTRA_TAG);
if (tag == null) {
if (tag == null && savedIntent != null) {
tag = savedIntent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
}

Expand Down

0 comments on commit da3ae2f

Please sign in to comment.