4

我有许多通过 ActionBarSherlock 使用片段的不同活动的大型应用程序。当我通过意图启动新活动时随机出现此错误:

08-08 18:22:12.563: ERROR/AndroidRuntime(2029): FATAL EXCEPTION: main
        java.lang.NullPointerException
        at android.view.View.buildDrawingCache(View.java:6438)
        at android.view.ViewGroup.onAnimationStart(ViewGroup.java:1253)
        at android.view.ViewGroup.drawChild(ViewGroup.java:1499)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
        at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
        at android.view.View.buildDrawingCache(View.java:6500)
        at android.view.ViewGroup.onAnimationStart(ViewGroup.java:1253)
        at android.view.ViewGroup.drawChild(ViewGroup.java:1499)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
        at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
        at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
        at android.view.View.draw(View.java:6743)
        at android.widget.FrameLayout.draw(FrameLayout.java:352)
        at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1842)
        at android.view.ViewRoot.draw(ViewRoot.java:1407)
        at android.view.ViewRoot.performTraversals(ViewRoot.java:1163)
        at android.view.ViewRoot.handleMessage(ViewRoot.java:1730)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:123)
        at android.app.ActivityThread.main(ActivityThread.java:4627)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:521)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
        at dalvik.system.NativeStart.main(Native Method)

如果有人对我如何解决它有任何想法,请告诉我。谢谢

4

0 回答 0