Buggy code:
nomeEncontroTextView = ( ( TextView ) ( rootView . findViewById ( nomeEdit ) ) ) ; linhaEncontroTextView = ( ( TextView ) ( rootView . findViewById ( linhaEdit ) ) ) ; pontoEncontroTextView = ( ( TextView ) ( rootView . findViewById ( pontoEdit ) ) ) ; dataButton = ( ( Button ) ( rootView . findViewById ( dataPickerButton ) ) ) ; dataButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { DialogFragment newFragment = new NovoEncontroFragment . DatePickerFragment ( ) ; newFragment . show ( getActivity ( ) . getSupportFragmentManager ( ) , "datePicker" ) ; } } ) ; horaButton = ( ( Button ) ( rootView . findViewById ( horarioButton ) ) ) ; horaButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { DialogFragment newFragment = new NovoEncontroFragment . TimePickerFragment ( ) ; newFragment . show ( getActivity ( ) . getSupportFragmentManager ( ) , "timePicker" ) ; } } ) ; cancelarButton = ( ( Button ) ( rootView . findViewById ( cancelarButtonId ) ) ) ; cancelarButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { FragmentManager fragmentManager = getActivity ( ) . getSupportFragmentManager ( ) ; fragmentManager . beginTransaction ( ) . replace ( container , new HomeFragment ( ) ) . commit ( ) ; } } ) ; criarEncontroButton = ( ( Button ) ( rootView . findViewById ( botaocriar ) ) ) ; criarEncontroButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { String nomeEncontro = ( ( TextView ) ( rootView . findViewById ( nomeEdit ) ) ) . getText ( ) . toString ( ) ; String pontoEncontro = ( ( TextView ) ( rootView . findViewById ( pontoEdit ) ) ) . getText ( ) . toString ( ) ; String linhaEncontro = ( ( TextView ) ( rootView . findViewById ( linhaEdit ) ) ) . getText ( ) . toString ( ) ; int count = 0 ; if ( ! ( isNomeEncontroValid ( nomeEncontro ) ) ) { nomeEncontroTextView . setError ( "Nome<seq2seq4repair_space>Invalido" ) ; count = count + 1 ; } if ( ! ( isPontoEcontroValid ( pontoEncontro ) ) ) { pontoEncontroTextView . setError ( "Ponto<seq2seq4repair_space>Invalido" ) ; count = count + 1 ; } if ( ! ( isLinhaEncontroValid ( linhaEncontro ) ) ) { linhaEncontroTextView . setError ( "Linha<seq2seq4repair_space>Invalida" ) ; count = count + 1 ; } if ( ( horario ) == null ) { count = count + 1 ; Toast . makeText ( getActivity ( ) , "Horario<seq2seq4repair_space>Invalido" , LENGTH_LONG ) . show ( ) ; } if ( ( ( ( ( data ) == null ) || ( ( data . getAno ( ) ) < ( Integer . parseInt ( dataAtu [ 2 ] ) ) ) ) || ( ( ( data . getAno ( ) ) == ( Integer . parseInt ( dataAtu [ 2 ] ) ) ) && ( ( data . getMes ( ) ) < ( ( Integer . parseInt ( dataAtu [ 1 ] ) ) - 1 ) ) ) ) || ( ( ( ( data . getAno ( ) ) == ( Integer . parseInt ( dataAtu [ 2 ] ) ) ) && ( ( data . getMes ( ) ) == ( ( Integer . parseInt ( dataAtu [ 1 ] ) ) - 1 ) ) ) && ( ( data . getDia ( ) ) < ( Integer . parseInt ( dataAtu [ 0 ] ) ) ) ) ) { count = count + 1 ; Toast . makeText ( getActivity ( ) , "Data<seq2seq4repair_space>Invalida" , LENGTH_LONG ) . show ( ) ; } if ( count == 0 ) { encontro = new Encontro ( ) ; encontro . setNome ( nomeEncontro ) ; encontro . setPonto ( pontoEncontro ) ; encontro . setLinha ( linhaEncontro ) ; encontro . setHorario ( horario ) ; encontro . setData ( data ) ; encontro . setIdDono ( PerfilFragment . getUser ( ) . getId ( ) ) ; encontro . setNomeDono ( PerfilFragment . getUser ( ) . getName ( ) ) ; ClienteRest cliREST = new ClienteRest ( ) ; try { <START_BUG> String resposta2 = cliREST . criarUsuario ( ( ( encontro . getIdDono ( ) ) + "" ) , encontro . getNome ( ) ) ; <END_BUG> String resposta = cliREST . inserirEncontro ( encontro ) ; Log . d ( ( "Aqui" + resposta ) , encontro . getPerfisConfirmados ( ) . toString ( ) ) ; } catch ( Exception e ) { e . getMessage ( ) ; gerarToast ( e . getMessage ( ) ) ; } FragmentManager fragmentManager = getActivity ( ) . getSupportFragmentManager ( ) ; fragmentManager . beginTransaction ( ) . replace ( container , new HomeFragment ( ) ) . commit ( ) ; gerarToast ( "Encontro<seq2seq4repair_space>Criado!" ) ; gerarNotificacao ( ) ; } } } ) ; return rootView ; } private void gerarNotificacao ( ) { } private void gerarToast ( CharSequence message ) { } private boolean isPontoEcontroValid ( String ponto ) { } private boolean isLinhaEncontroValid ( String linha ) { } private boolean isNomeEncontroValid ( String nomeEncontro ) { } public class DatePickerFragment extends DialogFragment implements DatePickerDialog . OnDateSetListener { @ Override public Dialog onCreateDialog ( Bundle savedInstanceState ) { } @ Override public void onDateSet ( DatePicker view , int year , int month , int day ) { } } public class TimePickerFragment extends DialogFragment implements TimePickerDialog . OnTimeSetListener { @ Override public Dialog onCreateDialog ( Bundle savedInstanceState ) { }

Fix:
String resposta2 = cliREST . criarUsuario ( ( ( encontro . getIdDono ( ) ) + "" ) , encontro . getNomeDono ( ) ) ;