java.lang.ClassCastException: android.widget.ExpandableListConnector cannot be cast to com.xera.deviceinsight.home.ExpandableListAdapter

Stack Overflow | Zidane | 2 weeks ago
  1. 0

    I dont understand why I am getting a fatal exception in my onChildClick method for my expandable list view

    Stack Overflow | 2 weeks ago | Zidane
    java.lang.ClassCastException: android.widget.ExpandableListConnector cannot be cast to com.xera.deviceinsight.home.ExpandableListAdapter
  2. 0
    samebug tip
    You can't use hide() or remove() or many things with NULL values, try checking for NULL before calling this methods.
  3. 0
    samebug tip
    Also, check if you're not using android.support.v4.app.FragmentTransaction with android.app.Fragment and vice-versa
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Last screen(activity) keeps crashing

    Stack Overflow | 10 months ago | dabroman
    java.lang.NullPointerException
  6. 0

    Application worked before but now it just stops

    Stack Overflow | 10 months ago | dabroman
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.ExpandableListConnector cannot be cast to com.xera.deviceinsight.home.ExpandableListAdapter

      at com.xera.deviceinsight.home.CostCentreListFragment$1.onChildClick()
    2. com.xera.deviceinsight
      CostCentreListFragment$1.onChildClick
      1. com.xera.deviceinsight.home.CostCentreListFragment$1.onChildClick(CostCentreListFragment.java:88)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.widget.ExpandableListView.handleItemClick(ExpandableListView.java:712)
      2. android.widget.ExpandableListView.performItemClick(ExpandableListView.java:651)
      3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3014)
      4. android.widget.AbsListView$3.run(AbsListView.java:3865)
      5. android.os.Handler.handleCallback(Handler.java:808)
      6. android.os.Handler.dispatchMessage(Handler.java:103)
      7. android.os.Looper.loop(Looper.java:193)
      8. android.app.ActivityThread.main(ActivityThread.java:5299)
      8 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame