u014496581
决绝而飞
2016-05-30 09:11

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条回答