NFCForms icon indicating copy to clipboard operation
NFCForms copied to clipboard

NfcForms.IsAvailable NullReferenceException on Android-device without NFC

Open citpo opened this issue 7 years ago • 0 comments

Hi,

I'm getting an System.NullReferenceException: Object reference not set to an instance of an object. when checking NfcForms.IsAvailable on devices where NFC-hardware isn't available.

For example Samsung Trend GT-S7580 (Android 4.2.2)

Would be nice if false was returned both when NFC is disabled and when device don't have the hardware.

/Richard

citpo avatar May 17 '17 08:05 citpo