java.lang.RuntimeException

Unable to resume activity {org.kegbot.app/org.kegbot.app.HomeActivity}: java.lang.RuntimeException: Could not dispatch event: class org.kegbot.app.event.TapListUpdateEvent to handler [EventHandler public void org.kegbot.app.HomeActivity.onTapListUpdate(org.kegbot.app.event.TapListUpdateEvent)]

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web70

  • via GitHub by mik3y
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to resume activity {org.kegbot.app/org.kegbot.app.HomeActivity}: java.lang.RuntimeException: Could not dispatch event: class org.kegbot.app.event.TapListUpdateEvent to handler [EventHandler public void org.kegbot.app.HomeActivity.onTapListUpdate(org.kegbot.app.event.TapListUpdateEvent)] at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) 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:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Could not dispatch event: class org.kegbot.app.event.TapListUpdateEvent to handler [EventHandler public void org.kegbot.app.HomeActivity.onTapListUpdate(org.kegbot.app.event.TapListUpdateEvent)] at com.squareup.otto.Bus.throwRuntimeException(Bus.java:456) at com.squareup.otto.Bus.dispatch(Bus.java:386) at com.squareup.otto.Bus.dispatchProducerResultToHandler(Bus.java:252) at com.squareup.otto.Bus.register(Bus.java:235) at org.kegbot.app.HomeActivity.onResume(HomeActivity.java:182) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192) at android.app.Activity.performResume(Activity.java:5310) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778) ... 10 more Caused by: java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 4, found: 3 Pager id: org.kegbot.app:id/tap_status_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class org.kegbot.app.HomeActivity$MyAdapter at android.support.v4.view.ViewPager.populate(ViewPager.java:962) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:550) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:509) at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:490) at org.kegbot.app.HomeActivity.onTapListUpdate(HomeActivity.java:249) 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:384) ... 16 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

    filpgamefilpgame
    Once,
    Unknown visitor
    Unknown visitorOnce,
    adawolfsadawolfs
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    mrPetmrPet
    231 times, last one
    7 more bugmates