khalidMahmoud / weather-notification-android

Automatically exported from code.google.com/p/weather-notification-android
0 stars 0 forks source link

IndexOutOfBoundsException in ArrayList.throwIndexOutOfBoundsException() #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Jan 21, 2011 5:18:23 PM 0.1-beta1 Doesn't open.

java.lang.RuntimeException: Unable to start service 
ru.gelin.android.weather.notification.UpdateService@481cb668 with Intent { 
cmp=ru.gelin.android.weather.notification/.UpdateService (has extras) }: 
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3063)
at android.app.ActivityThread.access$3600(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2096)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
at java.util.ArrayList.get(ArrayList.java:311)
at 
ru.gelin.android.weather.notification.WeatherNotification.<init>(WeatherNotifica
tion.java:76)
at 
ru.gelin.android.weather.notification.WeatherNotification.update(WeatherNotifica
tion.java:45)
at 
ru.gelin.android.weather.notification.UpdateService.skipUpdate(UpdateService.jav
a:166)
at 
ru.gelin.android.weather.notification.UpdateService.onStart(UpdateService.java:1
43)
at android.app.Service.onStartCommand(Service.java:420)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3053)
... 10 more

Original issue reported on code.google.com by DNelubin on 21 Jan 2011 at 11:20

GoogleCodeExporter commented 8 years ago

Original comment by DNelubin on 21 Jan 2011 at 11:22

GoogleCodeExporter commented 8 years ago
Need to sanitize all accesses to weather conditions.

Original comment by DNelubin on 21 Jan 2011 at 11:23

GoogleCodeExporter commented 8 years ago
v0.1-beta1
Jan 21, 2011 5:18:23 PM

java.lang.RuntimeException: Unable to start service 
ru.gelin.android.weather.notification.UpdateService@481cb668 with Intent { 
cmp=ru.gelin.android.weather.notification/.UpdateService (has extras) }: 
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3063)
at android.app.ActivityThread.access$3600(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2096)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
at java.util.ArrayList.get(ArrayList.java:311)
at 
ru.gelin.android.weather.notification.WeatherNotification.<init>(WeatherNotifica
tion.java:76)
at 
ru.gelin.android.weather.notification.WeatherNotification.update(WeatherNotifica
tion.java:45)
at 
ru.gelin.android.weather.notification.UpdateService.skipUpdate(UpdateService.jav
a:166)
at 
ru.gelin.android.weather.notification.UpdateService.onStart(UpdateService.java:1
43)
at android.app.Service.onStartCommand(Service.java:420)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3053)
... 10 more

Original comment by DNelubin on 22 Jan 2011 at 6:03

GoogleCodeExporter commented 8 years ago

Original comment by DNelubin on 22 Jan 2011 at 12:04