diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NFCUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NFCUtils.java index b9f3a8700..39b04afd6 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NFCUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NFCUtils.java @@ -76,7 +76,9 @@ public class NFCUtils { NfcManager manager = (NfcManager)activity.getSystemService( Context.NFC_SERVICE ); NfcAdapter adapter = manager.getDefaultAdapter(); - adapter.setNdefPushMessageCallback( cb, activity ); + if ( null != adapter ) { + adapter.setNdefPushMessageCallback( cb, activity ); + } } }