When using Expandablelistview, report the following error. Online search found that the original is in the Commonnumberqueryadapter Getgroupview () method returned is null, attention to detail Oh!!!
12-19 17:32:41.822:e/androidruntime (1894): FATAL Exception:main 12-19 17:32:41.822:e/androidruntime (1894): Java.lang.NullPointerException 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.AbsListView.obtainView (abslistview.java:2269) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.ListView.makeAndAddView (listview.java:1769) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.ListView.fillDown (listview.java:672) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.ListView.fillSpecific (listview.java:1330) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.ListView.layoutChildren (listview.java:1600) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.AbsListView.onLayout (abslistview.java:2102) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.View.layout (view.java:13754) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewGroup.layout (viewgroup.java:4362) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.LinearLayout.setChildFrame (linearlayout.java:1649) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.LinearLayout.layoutVertical (linearlayout.java:1507) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.LinearLayout.onLayout (linearlayout.java:1420) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.View.layout (view.java:13754) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewGroup.layout (viewgroup.java:4362) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.FrameLayout.onLayout (framelayout.java:448) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.View.layout (view.java:13754) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewGroup.layout (viewgroup.java:4362) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.LinearLayout.setChildFrame (linearlayout.java:1649) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.LinearLayout.layoutVertical (linearlayout.java:1507) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.LinearLayout.onLayout (linearlayout.java:1420) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.View.layout (view.java:13754) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewGroup.layout (viewgroup.java:4362) 12-19 17:32:41.822:e/androidruntime (1894): at Android.widget.FrameLayout.onLayout (framelayout.java:448) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.View.layout (view.java:13754) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewGroup.layout (viewgroup.java:4362) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewRootImpl.performLayout (viewrootimpl.java:1866) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewRootImpl.performTraversals (viewrootimpl.java:1687) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.ViewRootImpl.doTraversal (viewrootimpl.java:998) 12-19 17:32:41.822:e/androidruntime (1894): At Android.view.viewrootimpl$traversalrunnable.run (ViewRootImpl.java : 4212) 12-19 17:32:41.822:e/androidruntime (1894): At Android.view.choreographer$callbackrecord.run (Choreographer.java : 725) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.Choreographer.doCallbacks (choreographer.java:555) 12-19 17:32:41.822:e/androidruntime (1894): at Android.view.Choreographer.doFrame (choreographer.java:525) 12-19 17:32:41.822:e/androidruntime (1894): At Android.view.choreographer$framedisplayeventreceiver.run ( choreographer.java:711) 12-19 17:32:41.822:e/androidruntime (1894): at Android.os.Handler.handleCallback (handler.java:615) 12-19 17:32:41.822:e/androidruntime (1894): at Android.os.Handler.dispatchMessage (handler.java:92) 12-19 17:32:41.822:e/androidruntime (1894): at Android.os.Looper.loop (looper.java:137) 12-19 17:32:41.822:e/androidruntime (1894): at Android.app.ActivityThread.main (activitythread.java:4745) 12-19 17:32:41.822:e/androidruntime (1894): At Java.lang.reflect.Method.invokeNative (Native Method) 12-19 17:32:41.822:e/androidruntime (1894): at Java.lang.reflect.Method.invoke (method.java:511) 12-19 17:32:41.822:e/androidruntime (1894): At Com.android.internal.os.zygoteinit$methodandargscaller.run ( zygoteinit.java:786) 12-19 17:32:41.822:e/androidruntime (1894): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:553) 12-19 17:32:41.822:e/androidruntime (1894): At Dalvik.system.NativeStart.main (Native Method) |
NullPointerException at Android.widget.AbsListView.obtainView at Android.widget.ListView.makeAndAddView