Saving Multiple NFC Tags - Force Close when adding multiple EditText fields to tutorial

view story

http://stackoverflow.com – I'm following a tutorial which allows users to save data to NFC tags. I'm attempting to modify the tutorial source code to include a second EditText field and save a second tag however when I do so (using the source below) the app crashes due to a NullPointer exception on line 96. Line 96 = Ndef ndef = Ndef.get(tag); I think I need to add something at this point to account for the new data I'm attempting to write - but I'm not sure what it is. Thanks in advance! JAVA: import java.io.IOException; import java.io.UnsupportedEncodingException; import android.annotation.SuppressLint; impor (HowTos)