Crash: NullPointerException - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Crash: NullPointerException

Crash: NullPointerException 2 years 1 day ago #11428

  • алежур
  • алежур's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi,

I get some crashes from Crashlytics on different devices (Samsung, LG, Meizu etc..) and versions (Android 4,5,6)
The users complaint that they could not to work with some of PDFs files. I just have a stack trace but could not to reproduce this (files requested). Could you please check the trace below and help me what is wrong.

Thanks.
Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int com.radaee.view.c.c' on a null object reference
       at com.radaee.reader.PDFLayoutView$PDFGestureListener.onSingleTapUp(SourceFile:1619)
       at android.view.GestureDetector.onTouchEvent(GestureDetector.java:651)
       at com.radaee.reader.PDFLayoutView.onTouchNone(SourceFile:341)
       at com.radaee.reader.PDFLayoutView.onTouchEvent(SourceFile:765)
       at android.view.View.dispatchTouchEvent(View.java:9993)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2839)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2514)
       at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2831)
       at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1863)
       at android.app.Activity.dispatchTouchEvent(Activity.java:3046)
       at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(SourceFile:60)
       at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(SourceFile:60)
       at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2792)
       at android.view.View.dispatchPointerEvent(View.java:10228)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5344)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5180)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4620)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4673)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4639)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4781)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4647)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4838)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4620)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4673)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4639)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4647)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4620)
       at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7306)
       at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7184)
       at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7145)
       at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7416)
       at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:323)
       at android.os.Looper.loop(Looper.java:143)
       at android.app.ActivityThread.main(ActivityThread.java:7224)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Please Log in or Create an account to join the conversation.

Crash: NullPointerException 2 years 1 day ago #11429

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
can you reproduce the issue with the demo project ? If yes can you please send us a pdf, so we can check it?

Maybe, this error have been solved in the new version of the library, so I suggest you to check the latest release.
We have moved the code from onSingleTapUp to onSingleTapConfirmed and added a check to prevent NullPointerException.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum