Buggy code:
public class AddItemActivity extends Activity { private EditText Date ; private android . app . DatePickerDialog DatePickerDialog ; private SimpleDateFormat df = new SimpleDateFormat ( "MM//dd//yyyy" , Locale . US ) ; public static final String MOCK_PROVIDER = "mockLocationProvider" ; private Claim claim ; private int claim_id ; private Uri imageFileUri = null ; private boolean flag ; private ExpenseItem expenseItem ; private int expenseItemId ; private String option ; private EditText editName ; private EditText editCategory ; private EditText editDescription ; private EditText editCurrency ; private EditText editAmount ; public Location location ; @ SuppressWarnings ( "deprecation" ) @ Override protected void onCreate ( Bundle savedInstanceState ) { } public void editItem ( ) { } public void addItem ( ) { } public void currencyOnClick ( View view ) { } public void deleteImage ( View view ) { } private static final int CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE = 100 ; public void addImage ( View view ) { } @ SuppressWarnings ( "deprecation" ) protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } public void categoryOnClick ( View view ) { } public void onCheckBoxClicked ( View view ) { } public void onImageCheckBoxClick ( View view ) { } public void onLocationClick ( View view ) { boolean checked = ( ( android . widget . CheckBox ) ( view ) ) . isChecked ( ) ; if ( checked ) { final LocationManager lm = ( ( LocationManager ) ( getSystemService ( LOCATION_SERVICE ) ) ) ; AlertDialog . Builder adb = new AlertDialog . Builder ( this ) ; adb . setMessage ( "Do<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>set<seq2seq4repair_space>your<seq2seq4repair_space>current<seq2seq4repair_space>location<seq2seq4repair_space>as<seq2seq4repair_space>this<seq2seq4repair_space>item<seq2seq4repair_space>location,<seq2seq4repair_space>or<seq2seq4repair_space>choose<seq2seq4repair_space>remotely?<seq2seq4repair_space>" ) ; adb . setCancelable ( true ) ; adb . setPositiveButton ( "Current<seq2seq4repair_space>Location" , new OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { location = lm . getLastKnownLocation ( GPS_PROVIDER ) ; lm . requestLocationUpdates ( GPS_PROVIDER , 1000 , 1 , listener ) ; if ( ( location ) == null ) { Toast . makeText ( AddItemActivity . this , "Error<seq2seq4repair_space>No<seq2seq4repair_space>Location<seq2seq4repair_space>added" , LENGTH_SHORT ) . show ( ) ; } else { <START_BUG> Toast . makeText ( AddItemActivity . this , "current<seq2seq4repair_space>Location<seq2seq4repair_space>added<seq2seq4repair_space>as<seq2seq4repair_space>Destination<seq2seq4repair_space>Location" , LENGTH_SHORT ) . show ( ) ; <END_BUG> } } } ) ; adb . setNegativeButton ( "Remote<seq2seq4repair_space>Location" , new OnClickListener ( ) { public void onClick ( DialogInterface dialog , int which ) { Intent intent = new Intent ( AddItemActivity . this , MapActivity . class ) ; startActivity ( intent ) ; if ( ( location ) == null ) { Toast . makeText ( AddItemActivity . this , "Error<seq2seq4repair_space>No<seq2seq4repair_space>Location<seq2seq4repair_space>added" , LENGTH_SHORT ) . show ( ) ; } else { Toast . makeText ( AddItemActivity . this , "Chosen<seq2seq4repair_space>Location<seq2seq4repair_space>added<seq2seq4repair_space>as<seq2seq4repair_space>Destination<seq2seq4repair_space>Location" , LENGTH_SHORT ) . show ( ) ; } } } ) ; adb . show ( ) ; } else { location = null ; } } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } private void setDateTimeField ( ) { } private final LocationListener listener = new LocationListener ( ) { public void onLocationChanged ( Location location ) { } public void onProviderDisabled ( String provider ) { } public void onProviderEnabled ( String provider ) { } public void onStatusChanged ( String provider , int status , Bundle extras ) { } } ; }

Fix:
Toast . makeText ( AddItemActivity . this , "Current<seq2seq4repair_space>Location<seq2seq4repair_space>added<seq2seq4repair_space>as<seq2seq4repair_space>Destination<seq2seq4repair_space>Location" , LENGTH_SHORT ) . show ( ) ;