DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.18k stars 1.91k forks source link

Nullpointer exception on page load #60

Open kaiske56 opened 8 years ago

kaiske56 commented 8 years ago

Hi @barteksc Could you please help me with this issue

E/InputEventReceiver: Exception dispatching input event.
E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
E/MessageQueue-JNI: java.lang.NullPointerException: Attempt to read from field 'long
                                     com.shockwave.pdfium.PdfDocument.mNativeDocPtr' on a null object reference
                                     at com.shockwave.pdfium.PdfiumCore.openPage(PdfiumCore.java:120)
                                     at com.github.barteksc.pdfviewer.PDFView.loadPage(PDFView.java:695)
                                     at com.github.barteksc.pdfviewer.PDFView.loadPages(PDFView.java:653)
                                     ...
janvde commented 7 years ago

Keep getting this one too.

Exception java.lang.NullPointerException: Attempt to read from field 'long com.shockwave.pdfium.PdfDocument.mNativeDocPtr' on a null object reference com.shockwave.pdfium.PdfiumCore.openPage (PdfiumCore.java:134) com.github.barteksc.pdfviewer.PDFView.loadPage (PDFView.java:699) com.github.barteksc.pdfviewer.PDFView.loadPages (PDFView.java:657) com.github.barteksc.pdfviewer.AnimationManager$FlingAnimation.onAnimationEnd (AnimationManager.java:182)