Buggy code:
public class Controller { class Select extends AsyncTask < ApiConnector , Long , List < Object > > { private String url ; public Select ( String url ) { } private List < Object > users = new ArrayList < Object > ( ) ; private List < Object > appointments = new ArrayList < Object > ( ) ; @ Override protected List < Object > doInBackground ( ApiConnector ... params ) { if ( ( params [ 0 ] . getTable ( url ) ) == null ) { List < Object > obs = new ArrayList < Object > ( ) ; return obs ; } if ( url . contains ( "User" ) ) { return usersToList ( params [ 0 ] . getTable ( url ) ) ; } else if ( url . contains ( "Appointment" ) ) { return appointmentsToList ( params [ 0 ] . getTable ( url ) ) ; } else { List < Object > empty = new ArrayList < Object > ( ) ; return empty ; } } public List < Object > appointmentsToList ( JSONArray jsonArray ) { } public List < Object > usersToList ( JSONArray jsonArray ) { } } class Insert extends AsyncTask < ApiConnector , Long , List < Object > > { private String url ; private Object o ; public Insert ( Object o , String url ) { } @ Override protected List < Object > doInBackground ( ApiConnector ... params ) { if ( ( url . contains ( "CreateUser" ) ) || ( url . contains ( "EditUser" ) ) ) { User u = ( ( User ) ( o ) ) ; JSONParser jsonParser = new JSONParser ( ) ; List < NameValuePair > insertParams = new ArrayList < NameValuePair > ( ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "name" , u . getName ( ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "email" , u . getEmail ( ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "password" , u . getPwd ( ) ) ) ; <START_BUG> insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "phone_number" , ( ( u . getPhone ( ) ) + "" ) ) ) ; <END_BUG> insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "imageurl" , u . getImageurl ( ) ) ) ; JSONObject json = jsonParser . makeHttpRequest ( url , "POST" , insertParams ) ; Log . d ( "Create<seq2seq4repair_space>Response" , json . toString ( ) ) ; try { int success = json . getInt ( "succes" ) ; if ( success == 1 ) { Log . d ( "succes" , "succes" ) ; } else { Log . d ( "fail" , "fail" ) ; } } catch ( JSONException e ) { e . printStackTrace ( ) ; } } if ( ( url . contains ( "CreateAppointment" ) ) || ( url . contains ( "EditAppointment" ) ) ) { Appointment a = ( ( Appointment ) ( o ) ) ; JSONParser jsonParser = new JSONParser ( ) ; List < NameValuePair > insertParams = new ArrayList < NameValuePair > ( ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "name" , a . getName ( ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "description" , a . getDescription ( ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "priority" , ( ( a . getPriority ( ) ) + "" ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "datetime" , ( ( a . getDate ( ) ) + "" ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "location" , a . getLocation ( ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "owner" , ( ( a . getOwner ( ) ) + "" ) ) ) ; JSONObject json = jsonParser . makeHttpRequest ( url , "POST" , insertParams ) ; Log . d ( "Create<seq2seq4repair_space>Response" , json . toString ( ) ) ; try { int success = json . getInt ( "succes" ) ; if ( success == 1 ) { Log . d ( "succes" , "succes" ) ; } else { Log . d ( "fail" , "fail" ) ; } } catch ( JSONException e ) { e . printStackTrace ( ) ; } } if ( url . contains ( "AddGuests" ) ) { Appointment a = ( ( Appointment ) ( o ) ) ; JSONParser jsonParser = new JSONParser ( ) ; List < NameValuePair > insertParams = new ArrayList < NameValuePair > ( ) ; for ( User u : a . getUsers ( ) ) { insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "appid" , ( ( a . getId ( ) ) + "" ) ) ) ; insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "userid" , ( ( u . getId ( ) ) + "" ) ) ) ; JSONObject json = jsonParser . makeHttpRequest ( url , "POST" , insertParams ) ; Log . d ( "Create<seq2seq4repair_space>Response" , json . toString ( ) ) ; try { int success = json . getInt ( "succes" ) ;

Fix:
insertParams . add ( new org . apache . http . message . BasicNameValuePair ( "phonenumber" , ( ( u . getPhone ( ) ) + "" ) ) ) ;