java.lang.RuntimeException

Could not dispatch event: class org.fossasia.openevent.events.CounterEvent to handler [EventHandler public void org.fossasia.openevent.activities.MainActivity.onCounterReceiver(org.fossasia.openevent.events.CounterEvent)]: Invalid index 0, size is 0

Samebug tips1

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4266

  • via GitHub by gogeta95
    ,
  • via GitHub by itscam
    ,
  • Stack trace

    • java.lang.RuntimeException: Could not dispatch event: class org.fossasia.openevent.events.CounterEvent to handler [EventHandler public void org.fossasia.openevent.activities.MainActivity.onCounterReceiver(org.fossasia.openevent.events.CounterEvent)]: Invalid index 0, size is 0 at com.squareup.otto.Bus.throwRuntimeException(Bus.java:460) at com.squareup.otto.Bus.dispatch(Bus.java:387) at com.squareup.otto.Bus.dispatchQueuedEvents(Bus.java:368) at com.squareup.otto.Bus.post(Bus.java:337) at org.fossasia.openevent.OpenEventApp$1.run(OpenEventApp.java:59) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) 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 org.fossasia.openevent.utils.ISO8601Date.setEventTimezone(ISO8601Date.java:135) at org.fossasia.openevent.utils.ISO8601Date.getDateObject(ISO8601Date.java:91) at org.fossasia.openevent.activities.MainActivity.syncComplete(MainActivity.java:327) at org.fossasia.openevent.activities.MainActivity.onCounterReceiver(MainActivity.java:511) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.squareup.otto.EventHandler.handleEvent(EventHandler.java:89) at com.squareup.otto.Bus.dispatch(Bus.java:385) ... 12 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    winer222winer222
    3 times, last one
    Indri YunitaIndri Yunita
    81 times, last one
    justCodeitjustCodeit
    Once,
    filpgamefilpgame
    4 times, last one
    deallocdealloc
    Once,
    241 more bugmates