tjerkw/Android-SlideExpandableListView

error while running the demo

achinverma opened this issue · 1 comments

06-18 17:04:55.882: E/AndroidRuntime(16432): Process: com.example.slideexpandablelistview, PID: 16432
06-18 17:04:55.882: E/AndroidRuntime(16432): java.lang.NullPointerException
06-18 17:04:55.882: E/AndroidRuntime(16432): at com.tjerkw.slideexpandable.library.AbstractSlideExpandableListAdapter.enableFor(AbstractSlideExpandableListAdapter.java:205)
06-18 17:04:55.882: E/AndroidRuntime(16432): at com.tjerkw.slideexpandable.library.AbstractSlideExpandableListAdapter.getView(AbstractSlideExpandableListAdapter.java:129)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.AbsListView.obtainView(AbsListView.java:2263)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.ListView.makeAndAddView(ListView.java:1790)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.ListView.fillDown(ListView.java:691)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.ListView.fillFromTop(ListView.java:752)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.ListView.layoutChildren(ListView.java:1630)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.AbsListView.onLayout(AbsListView.java:2091)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.View.layout(View.java:14817)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewGroup.layout(ViewGroup.java:4631)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.View.layout(View.java:14817)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewGroup.layout(ViewGroup.java:4631)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.View.layout(View.java:14817)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewGroup.layout(ViewGroup.java:4631)
06-18 17:04:55.882: E/AndroidRuntime(16432): at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:374)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.View.layout(View.java:14817)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewGroup.layout(ViewGroup.java:4631)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.View.layout(View.java:14817)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewGroup.layout(ViewGroup.java:4631)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1987)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1744)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.Choreographer.doFrame(Choreographer.java:544)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.os.Handler.handleCallback(Handler.java:733)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.os.Handler.dispatchMessage(Handler.java:95)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.os.Looper.loop(Looper.java:136)
06-18 17:04:55.882: E/AndroidRuntime(16432): at android.app.ActivityThread.main(ActivityThread.java:5017)
06-18 17:04:55.882: E/AndroidRuntime(16432): at java.lang.reflect.Method.invokeNative(Native Method)
06-18 17:04:55.882: E/AndroidRuntime(16432): at java.lang.reflect.Method.invoke(Method.java:515)
06-18 17:04:55.882: E/AndroidRuntime(16432): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
06-18 17:04:55.882: E/AndroidRuntime(16432): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
06-18 17:04:55.882: E/AndroidRuntime(16432): at dalvik.system.NativeStart.main(Native Method)

Just clean the projects (lib and demo) then rebuild. It should work fine after that.