listview加载好数据,点击同一项,有时会报空指针异常

05-30 08:54:03.107: E/AndroidRuntime(1270): java.lang.NullPointerException
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.TextView.onMeasure(TextView.java:6555)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.View.measure(View.java:12581)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.TableRow.getColumnsWidths(TableRow.java:310)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.TableLayout.findLargestCells(TableLayout.java:500)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.TableLayout.measureVertical(TableLayout.java:465)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.TableLayout.onMeasure(TableLayout.java:431)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.View.measure(View.java:12581)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4671)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.View.measure(View.java:12581)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4671)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1369)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.LinearLayout.measureVertical(LinearLayout.java:660)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.View.measure(View.java:12581)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4671)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
05-30 08:54:03.107: E/AndroidRuntime(1270): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2062)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.View.measure(View.java:12581)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1038)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2382)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.os.Handler.dispatchMessage(Handler.java:99)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.os.Looper.loop(Looper.java:137)
05-30 08:54:03.107: E/AndroidRuntime(1270): at android.app.ActivityThread.main(ActivityThread.java:4340)
05-30 08:54:03.107: E/AndroidRuntime(1270): at java.lang.reflect.Method.invokeNative(Native Method)
05-30 08:54:03.107: E/AndroidRuntime(1270): at java.lang.reflect.Method.invoke(Method.java:511)
05-30 08:54:03.107: E/AndroidRuntime(1270): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-30 08:54:03.107: E/AndroidRuntime(1270): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-30 08:54:03.107: E/AndroidRuntime(1270): at dalvik.system.NativeStart.main(Native Method)

2个回答

忽略掉系统级别的信息,找到以你包名开头的信息,那才是你出问题的地方,这些看了也白看

u014496581
决绝而飞 这是全部的异常信息了,没有看到与包名开头的异常信息,而且是有时能显示这一项的具体信息,有时就报这么个异常
接近 4 年之前 回复

我顶,我顶,我顶顶顶

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问