Buggy code:
public class ArrivalNotifyService extends Service { private ArrivalNotifyService . NetTask netTask ; private ArrivalNotifyService . NotificationTask notificationTask ; private class NetTask implements Runnable { boolean run = true ; public int stopID ; public String stopName ; public String vehicleNumber ; public String agency ; public String routeName ; public String destination ; public int notificationTime = 90 ; public boolean isValid = false ; int runNum = 0 ; public long arrivalTime = 0 ; public long arrivalUpdatedAt = 0 ; public String lastDestination = "" ; @ Override public void run ( ) { } protected void cleanParameters ( ) { } protected boolean parametersValid ( ) { } } private class NotificationTask implements Runnable { public boolean run = true ; public int lastDisplayedSeconds = 10000 ; public NotificationTask ( ) { } @ Override public void run ( ) { } public void updateNotificationText ( final NotificationCompat . Builder mBuilder ) { } } public int onStartCommand ( Intent intent , int flags , int startId ) { if ( ( ( netTask ) != null ) || ( ( notificationTask ) != null ) ) { ShutdownService ( ) ; } netTask = new ArrivalNotifyService . NetTask ( ) ; notificationTask = new ArrivalNotifyService . NotificationTask ( ) ; netTask . agency = intent . getExtras ( ) . getString ( "Agency" ) ; netTask . stopID = intent . getExtras ( ) . getInt ( "StopID" ) ; netTask . routeName = intent . getExtras ( ) . getString ( "Route" ) ; netTask . destination = intent . getExtras ( ) . getString ( "Destination" ) ; netTask . vehicleNumber = intent . getExtras ( ) . getString ( "VehicleNumber" ) ; <START_BUG> netTask . arrivalTime = intent . getExtras ( ) . getInt ( "NotificationTime" , 120 ) ; <END_BUG> netTask . cleanParameters ( ) ; if ( ! ( netTask . parametersValid ( ) ) ) { Log . e ( "NotifyService" , "Bad<seq2seq4repair_space>input<seq2seq4repair_space>into<seq2seq4repair_space>ArrivalNotify<seq2seq4repair_space>Service" ) ; Tracker t = Tracking . getTracker ( getApplicationContext ( ) ) ; t . send ( new HitBuilders . EventBuilder ( ) . setCategory ( "NotifyService" ) . setAction ( "Bad<seq2seq4repair_space>input<seq2seq4repair_space>in<seq2seq4repair_space>notify<seq2seq4repair_space>service<seq2seq4repair_space>start" ) . build ( ) ) ; return Service . START_NOT_STICKY ; } netTask . run = true ; notificationTask . run = true ; Thread netThread = new Thread ( netTask , "NotifyNetTask" ) ; netThread . start ( ) ; Thread notificationThread = new Thread ( notificationTask , "NotifyDisplayTask" ) ; notificationThread . start ( ) ; return Service . START_NOT_STICKY ; } @ Override public IBinder onBind ( Intent arg0 ) { } protected void ShutdownService ( ) { } @ Override public void onDestroy ( ) { } public void toast ( final String msg ) { } private class StupidArrival { public String destination ; public int arrivalTime ; public String stopName ; } public ArrivalNotifyService . StupidArrival getFirstArrivalTime ( String xml , String destination , String vehicleNumber ) { } public String getXMLArrivalString ( int stopID , String agency , String routeName ) { } }

Fix:
netTask . notificationTime = intent . getExtras ( ) . getInt ( "NotificationTime" , 120 ) ;