Buggy code:
public class SchedulesRouteSelectionActionBarActivity extends BaseAnalyticsActionBarActivity implements View . OnTouchListener , AdapterView . OnItemClickListener , AdapterView . OnItemLongClickListener , StickyListHeadersListView . OnHeaderClickListener , StickyListHeadersListView . OnStickyHeaderChangedListener , StickyListHeadersListView . OnStickyHeaderOffsetChangedListener { public static final String TAG = SchedulesRouteSelectionActionBarActivity . class . getName ( ) ; public static final String VALUE_ALERT_RESPONSE_EMPTY = "Empty" ; private SchedulesRouteSelection_ListViewItem_ArrayAdapter mAdapter ; private boolean fadeHeader = true ; private StatusView statusView ; private RouteTypes travelType ; private String iconImageNameSuffix ; private StickyListHeadersListView stickyList ; private ArrayList < SchedulesRouteModel > routesModel ; private TextView mAlertHeader ; private TextView mAlertMessage ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onStart ( ) { } @ Override public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { } @ Override public boolean onItemLongClick ( AdapterView < ? > parent , View view , final int position , long id ) { } public boolean removeFavorite ( SchedulesRouteModel schedulesRouteModel ) { } public boolean removeRecentlyViewed ( SchedulesRouteModel schedulesRouteModel ) { } @ Override public void onHeaderClick ( StickyListHeadersListView l , View header , int itemPosition , long headerId , boolean currentlySticky ) { } @ Override @ TargetApi ( VERSION_CODES . HONEYCOMB ) public void onStickyHeaderOffsetChanged ( StickyListHeadersListView l , View header , int offset ) { } @ Override public void onStickyHeaderChanged ( StickyListHeadersListView l , View header , int itemPosition , long headerId ) { } @ Override public boolean onTouch ( View v , MotionEvent event ) { } private class RoutesLoader extends AsyncTask < RouteTypes , Integer , Boolean > { ArrayList < SchedulesRouteModel > routesModelList = null ; public RoutesLoader ( ArrayList < SchedulesRouteModel > routesModelList ) { } private void loadRoutes ( RouteTypes routeType ) { } @ Override protected Boolean doInBackground ( RouteTypes ... params ) { } @ Override protected void onPostExecute ( Boolean b ) { } } private void fetchAlerts ( ) { Callback callback = new Callback ( ) { @ Override public void success ( Object o , Response response ) { if ( o != null ) { ArrayList < AlertModel > alertModelList = ( ( ArrayList < AlertModel > ) ( o ) ) ; for ( int i = 0 ; i < ( alertModelList . size ( ) ) ; i ++ ) { AlertModel alertModel = alertModelList . get ( i ) ; if ( ( alertModel != null ) && ( alertModel . isGeneral ( ) ) ) { String generalAlert = alertModel . getCurrentMessage ( ) ; if ( ( ! ( TextUtils . isEmpty ( generalAlert ) ) ) && ( ! ( generalAlert . equals ( SchedulesRouteSelectionActionBarActivity . VALUE_ALERT_RESPONSE_EMPTY ) ) ) ) { StringBuilder message = new StringBuilder ( ) ; message . append ( "<b>" ) . append ( getString ( schedules_alerts_general_message_prefix ) ) . append ( "<//b><seq2seq4repair_space>" ) . append ( generalAlert ) ; if ( ( ( mAlertMessage ) != null ) && ( ( mAlertHeader ) != null ) ) { mAlertMessage . setText ( Html . fromHtml ( message . toString ( ) ) ) ; mAlertHeader . setVisibility ( VISIBLE ) ; mAlertMessage . setVisibility ( VISIBLE ) ; } } } } } } @ Override public void failure ( RetrofitError retrofitError ) { try { Log . d ( SchedulesRouteSelectionActionBarActivity . TAG , ( ( "A<seq2seq4repair_space>failure<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>call<seq2seq4repair_space>to<seq2seq4repair_space>train<seq2seq4repair_space>view<seq2seq4repair_space>service<seq2seq4repair_space>with<seq2seq4repair_space>body<seq2seq4repair_space>|" + ( retrofitError . getResponse ( ) . getBody ( ) . in ( ) ) ) + "|" ) ) ; } catch ( Exception ex ) { <START_BUG> Log . d ( SchedulesRouteSelectionActionBarActivity . TAG , ex . getMessage ( ) ) ; <END_BUG> } } } ; AlertsServiceProxy alertsServiceProxy = new AlertsServiceProxy ( ) ; alertsServiceProxy . getAlerts ( callback ) ; } No newline ; at end ; of file ; }

Fix:
Log . d ( SchedulesRouteSelectionActionBarActivity . TAG , "retrofitError" ) ;