Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5840 Reply

    Khaled Alqasrawi

    When I open my pdfReaderactivity when the device is in landscape mode the app crashes and this is the crash report I get:

    java.lang.NullPointerException: Attempt to invoke virtual method ‘int com.epapyrus.plugpdf.core.viewer.PageView.getPageIdx()’ on a null object reference
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.layout(SinglePageDisplay.java:343)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onLayout(SinglePageDisplay.java:525)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at com.epapyrus.plugpdf.core.viewer.ReaderView.onLayout(ReaderView.java:754)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
    at android.view.View.layout(View.java:15596)
    at android.view.ViewGroup.layout(ViewGroup.java:4966)
    at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2072)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1829)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    at android.view.Choreographer.doCallbacks(Choreographer.java:580)
    at android.view.Choreographer.doFrame(Choreographer.java:550)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5221)
    at java.lang.reflect.Method.invoke(Method.java)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    #5845 Reply

    Dr. Plug
    Moderator

    Hi Khaled,

    I tried testing by download our sdk, import, and build. But, anyhow it doesn’t crash.on my device. Let me know more details. how i can see crash?

    Cheers,

    Dr.Plug

    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    #6065 Reply

    Khaled Alqasrawi

    Dr.Plug

    I used the same code in the sample application for the pdf activity, all the classes in the crash report are from the sdk. can I send you my code to check the crash ?

    Cheerz

    #6066 Reply

    Dr. Plug
    Moderator

    Hi Khaled,

    Could you please email me at ‘support@plugpdf.com’ to continue this discussion instead of using the forum? It would be good for a faster response.

    Thanks,

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: When in landscape mode, the application crashes
Your information: