Buggy code:
public class Profile extends ActionBarActivity { private static final int EMAIL = 1 ; private static final int PHONE = 2 ; private static final int NORMAL_MODE = 0 ; private int whichMode = Profile . NORMAL_MODE ; private static final int EDIT_MODE = 1 ; private static final int PICK_PICTURE = 2 ; private static final int VERIFY_PHONE = 3 ; private static final String PHONE_NOT_VERIFIED = "Phone<seq2seq4repair_space>not<seq2seq4repair_space>verified" ; private static final String EMAIL_NOT_VERIFIED = "Email<seq2seq4repair_space>not<seq2seq4repair_space>verified" ; private static final String UPDATING = "Updating..." ; private Activity activity ; private LinearLayout secondaryEmailContainer ; private LinearLayout secondaryPhoneContainer ; private List < MaterialEditText > primaryDetailBoxes = new ArrayList < > ( ) ; private List < MaterialEditText > secondaryEmailBoxes = new ArrayList < > ( ) ; private List < MaterialEditText > secondaryPhoneBoxes = new ArrayList < > ( ) ; private User user ; private ParseUser parseUser ; private Handler handler ; private BasicController basicController ; private BitmapHolder bitmapHolder ; private MaterialEditText emailBox ; private MaterialEditText firstNameBox ; private MaterialEditText lastNameBox ; private MaterialEditText phoneBox ; private Button verifyPhoneBtn ; private CardView secondaryEmailsCard ; private CardView secondaryPhonesCard ; private Toolbar profilePicView ; private ImageButton addSecondaryEmailField ; private ImageButton addSecondaryPhoneField ; private List < ImageButton > deleteButtons = new ArrayList < > ( ) ; private boolean profileMode ; private int circleID ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override public void onBackPressed ( ) { } private void setUpActivity ( ) { } private void addNewField ( String data , final int which ) { } private void getUserAndUpdateFields ( ) { } private void getUserPicture ( ) { } private void changeFieldMode ( boolean mode ) { } private void startResultActivity ( int whichActivity ) { } private void startMainActivity ( ) { } private class UpdateUser extends AsyncTask < Void , Void , Void > { private SweetAlertDialog pDialog ; @ Override protected void onPreExecute ( ) { } @ Override protected Void doInBackground ( Void ... params ) { ParseObject userDetailsObject = ObjectService . getUserDetailsObject ( ) ; user = basicController . getUser ( ) ; user . setFirstName ( firstNameBox . getText ( ) . toString ( ) ) ; user . setLastName ( lastNameBox . getText ( ) . toString ( ) ) ; <START_BUG> if ( ! ( user . getPhoneNumber ( ) . contains ( phoneBox . getText ( ) . toString ( ) ) ) ) { <END_BUG> user . setPhoneVerified ( false ) ; } user . setPhoneNumber ( phoneBox . getText ( ) . toString ( ) ) ; List < String > secondaryEmails = new ArrayList < > ( ) ; if ( ( secondaryEmailBoxes . size ( ) ) > 0 ) { for ( MaterialEditText editText : secondaryEmailBoxes ) { secondaryEmails . add ( editText . getText ( ) . toString ( ) ) ; } } user . setSecondaryEmails ( secondaryEmails ) ; List < String > secondaryPhones = new ArrayList < > ( ) ; if ( ( secondaryPhoneBoxes . size ( ) ) > 0 ) { for ( MaterialEditText editText : secondaryPhoneBoxes ) { secondaryPhones . add ( editText . getText ( ) . toString ( ) ) ; } } user . setSecondaryPhones ( secondaryPhones ) ; if ( userDetailsObject != null ) { userDetailsObject . put ( USER_FIRST_NAME , firstNameBox . getText ( ) . toString ( ) ) ; userDetailsObject . put ( USER_LAST_NAME , lastNameBox . getText ( ) . toString ( ) ) ; userDetailsObject . put ( USER_PRIMARY_PHONE , phoneBox . getText ( ) . toString ( ) ) ; userDetailsObject . remove ( USER_SECONDARY_EMAILS ) ; userDetailsObject . remove ( USER_SECONDARY_PHONES ) ; userDetailsObject . addAll ( USER_SECONDARY_EMAILS , secondaryEmails ) ; userDetailsObject . addAll ( USER_SECONDARY_PHONES , secondaryPhones ) ; userDetailsObject . saveEventually ( ) ; } basicController . updateUser ( user ) ; return null ; } @ Override protected void onPostExecute ( Void aVoid ) { } } }

Fix:
if ( ( ( user . getPhoneNumber ( ) ) != null ) && ( ! ( user . getPhoneNumber ( ) . contains ( phoneBox . getText ( ) . toString ( ) ) ) ) ) {