package net.somethingdreadful.MAL;

import android.annotation.TargetApi;
import android.app.Activity;
import android.nfc.NfcAdapter;
import android.os.Build;

public class NfcHelper {

    // disables "push to beam" for an activity
    @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
    public static void disableBeam(Activity activity) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
            NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity); 
            adapter.setNdefPushMessage(null, activity);
        }
    }
}

@@ -487,17 +487,51 @@
 tivity);
- 
+%0A            if (adapter != null) %7B
 %0A       
@@ -535,16 +535,17 @@
         
+%09
 adapter.
@@ -572,32 +572,46 @@
 ull, activity);%0A
+            %7D%0A
         %7D%0A    %7D%0A

Fix Crash with No NFC