chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 555 forks source link

Prevent crash in connect() when both intent and savedIntent are null #387

Closed pschlang closed 4 years ago

pschlang commented 4 years ago

When no intent has been received yet, the connect() function causes a crash of the application due to a null pointer exception on Android.

Fix by introducing a null check.