Hi,
We're using the newest library PDFViewer3.8beta4 and it crushes when doing like below:
- tap [ViewPager] button
- tap back key immediately
The sample application almost 100% crushes.
Here is the crush log.
08-23 19:53:40.198 2955-2955/com.radaee.reader D/AndroidRuntime: Shutting down VM
08-23 19:53:40.199 2955-2955/com.radaee.reader E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.radaee.reader, PID: 2955
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.radaee.view.PDFPageView.invalidate()' on a null object reference
at com.radaee.view.PDFViewPager$1.handleMessage(PDFViewPager.java:53)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
And, there is another problem when use PDF file below:
www.heidelberg-mobil.com/fileadmin/hd_mo.../material-design.pdf
- Show the file in ViewPager.
- Swap several pages very quickly.
- Press back key immediately.
It will back to MainActivity, but UI is blocked several seconds until CRUSH!!
The crush log is the same as above.
Hope will be fixed soon. Thank you.