JammyR / PDF_Demo

43 stars 13 forks source link

NullPointerException #3

Open LoveqLRC opened 6 years ago

LoveqLRC commented 6 years ago
java.lang.NullPointerException: Attempt to invoke interface method 'android.view.View android.widget.Adapter.getView(int, android.view.View, android.view.ViewGroup)' on a null object reference
                                                                                at com.artifex.mupdf.ReaderView.getOrCreateChild(ReaderView.java:498)
                                                                                at com.artifex.mupdf.ReaderView.onLayout(ReaderView.java:397)
                                                                                at android.view.View.layout(View.java:16987)
                                                                                at android.view.ViewGroup.layout(ViewGroup.java:5550)
                                                                                at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1080)
                                                                                at android.view.View.layout(View.java:16987)
                                                                                at android.view.ViewGroup.layout(ViewGroup.java:5550)
                                                                                at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
                                                                                at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
                                                                                at android.view.View.layout(View.java:16987)
                                                                                at android.view.ViewGroup.layout(ViewGroup.java:5550)
                                                                                at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
                                                                                at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
                                                                                at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
                                                                                at android.view.View.layout(View.java:16987)
                                                                                at android.view.ViewGroup.layout(ViewGroup.java:5550)
                                                                                at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
                                                                                at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
                                                                                at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2744)
                                                                                at android.view.View.layout(View.java:16987)
                                                                                at android.view.ViewGroup.layout(ViewGroup.java:5550)
                                                                                at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2513)
                                                                                at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2174)
                                                                                at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1268)
                                                                                at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6638)
                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:926)
                                                                                at android.view.Choreographer.doCallbacks(Choreographer.java:717)
                                                                                at android.view.Choreographer.doFrame(Choreographer.java:652)
                                                                                at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:912)
                                                                                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:5669)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
LonelyPluto commented 5 years ago

I had the same problem.Have you solved it?