gelin / weather-notification

An utility which displays the weather in the Android notification bar
GNU General Public License v3.0
26 stars 11 forks source link

IndexOutOfBoundsException #27

Open gelin opened 9 years ago

gelin commented 9 years ago

Original report by Denis Nelubin (Bitbucket: gelin, GitHub: gelin).


java.lang.RuntimeException: Unable to start receiver ru.gelin.android.weather.notification.skin.builtin.SkinWeatherNotificationReceiver: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2453)
at android.app.ActivityThread.access$1700(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1286)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5102)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
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:255)
at java.util.ArrayList.get(ArrayList.java:308)
at ru.gelin.android.weather.notification.skin.impl.WeatherFormatter.formatContentTitle(WeatherFormatter.java:62)
at ru.gelin.android.weather.notification.skin.impl.BaseWeatherNotificationReceiver.notify(BaseWeatherNotificationReceiver.java:123)
at ru.gelin.android.weather.notification.skin.impl.WeatherNotificationReceiver.onReceive(WeatherNotificationReceiver.java:82)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2446)
... 10 more