android fragment 诡异异常

songsyl1207 发布于 2013/09/30 20:07
阅读 1K+
收藏 0

使用fragment的时候出现诡异异常。

09-30 20:04:59.825: E/AndroidRuntime(9520): FATAL EXCEPTION: main
09-30 20:04:59.825: E/AndroidRuntime(9520): java.lang.NullPointerException
09-30 20:04:59.825: E/AndroidRuntime(9520): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1391)
09-30 20:04:59.825: E/AndroidRuntime(9520): at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:420)
09-30 20:04:59.825: E/AndroidRuntime(9520): at android.os.Handler.handleCallback(Handler.java:605)
09-30 20:04:59.825: E/AndroidRuntime(9520): at android.os.Handler.dispatchMessage(Handler.java:92)
09-30 20:04:59.825: E/AndroidRuntime(9520): at android.os.Looper.loop(Looper.java:154)
09-30 20:04:59.825: E/AndroidRuntime(9520): at android.app.ActivityThread.main(ActivityThread.java:4945)
09-30 20:04:59.825: E/AndroidRuntime(9520): at java.lang.reflect.Method.invokeNative(Native Method)
09-30 20:04:59.825: E/AndroidRuntime(9520): at java.lang.reflect.Method.invoke(Method.java:511)
09-30 20:04:59.825: E/AndroidRuntime(9520): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
09-30 20:04:59.825: E/AndroidRuntime(9520): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
09-30 20:04:59.825: E/AndroidRuntime(9520): at dalvik.system.NativeStart.main(Native Method)


加载中
0
117
117
代码都没的  ,怎么看?
0
purplechen
purplechen
第三个log的行号显示不全 请补全
0
s
songsyl1207

@索马里海盗甲 错误是定位到v4jar包里,不在代码里。

我是想做一个fragment的即时刷新,用的方法是把含有fragment的activity 结束掉。重启该activity,就报这个神奇的错误了。

0
s
songsyl1207
@ purplechen  at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1406)
返回顶部
顶部