尝试从空对象引用中读取字段“ int android.view.View.mViewFlags”

时间:2018-11-26 11:33:56

标签: android crash

我们在生产应用程序中遇到以下异常,但没有提及应用程序类。很难找出问题的出处,而且我们也无法在设备中复制。

Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
       at android.view.View.updateDisplayListIfDirty(View.java:15158)
       at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:282)
       at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:288)
       at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:323)
       at android.view.ViewRootImpl.draw(ViewRootImpl.java:2642)
       at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2461)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2094)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1134)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6050)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)
       at android.view.Choreographer.doCallbacks(Choreographer.java:672)
       at android.view.Choreographer.doFrame(Choreographer.java:608)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5441)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

我看到了一些与我的问题相似的链接,但这也无济于事。以下是我看到的链接:

Android ViewGroup crash: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference

getting NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' - Android animation

如果有人遇到同样的问题并有解决方案,请告诉我。

如果需要更多信息,也请告诉我。

谢谢您的时间。 :)

0 个答案:

没有答案