Why i a mgetting Nullpointer exception - 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: Why i a mgetting Nullpointer exception

Why i a mgetting Nullpointer exception 4 years 2 weeks ago #7604

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 0
I have a viewpager in my android application which contain several fragments.When the orientation changes the i got below exception.
10-30 11:08:11.470: E/InputEventReceiver(13224): Exception dispatching input event.
10-30 11:08:11.470: E/MessageQueue-JNI(13224): Exception in MessageQueue callback: handleReceiveCallback
10-30 11:08:11.475: E/MessageQueue-JNI(13224): java.lang.NullPointerException
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.radaee.view.PDFViewThumb.vSingleTap(PDFViewThumb.java:203)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.radaee.view.PDFView$PDFGestureListener.onSingleTapUp(PDFView.java:490)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.GestureDetector.onTouchEvent(GestureDetector.java:1414)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.radaee.view.PDFView.motionNormal(PDFView.java:550)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.radaee.view.PDFView.vTouchEvent(PDFView.java:656)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.radaee.util.PDFThumbView.onTouchEvent(PDFThumbView.java:75)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.View.dispatchTouchEvent(View.java:7669)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2283)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1578)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.app.Activity.dispatchTouchEvent(Activity.java:2468)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2231)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.View.dispatchPointerEvent(View.java:7876)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3898)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3782)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5034)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5013)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5112)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.os.MessageQueue.nativePollOnce(Native Method)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.os.MessageQueue.next(MessageQueue.java:125)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.os.Looper.loop(Looper.java:124)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at android.app.ActivityThread.main(ActivityThread.java:5279)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at java.lang.reflect.Method.invoke(Method.java:511)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
10-30 11:08:11.475: E/MessageQueue-JNI(13224): 	at dalvik.system.NativeStart.main(Native Method)
10-30 11:08:11.480: D/AndroidRuntime(13224): Shutting down VM
10-30 11:08:11.480: W/dalvikvm(13224): threadid=1: thread exiting with uncaught exception (group=0x41176930)
10-30 11:08:11.480: E/AndroidRuntime(13224): FATAL EXCEPTION: main
10-30 11:08:11.480: E/AndroidRuntime(13224): java.lang.NullPointerException
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.radaee.view.PDFViewThumb.vSingleTap(PDFViewThumb.java:203)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.radaee.view.PDFView$PDFGestureListener.onSingleTapUp(PDFView.java:490)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.GestureDetector.onTouchEvent(GestureDetector.java:1414)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.radaee.view.PDFView.motionNormal(PDFView.java:550)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.radaee.view.PDFView.vTouchEvent(PDFView.java:656)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.radaee.util.PDFThumbView.onTouchEvent(PDFThumbView.java:75)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.View.dispatchTouchEvent(View.java:7669)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2397)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2134)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2283)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1578)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.app.Activity.dispatchTouchEvent(Activity.java:2468)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2231)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.View.dispatchPointerEvent(View.java:7876)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3898)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3782)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5034)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5013)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5112)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.os.MessageQueue.nativePollOnce(Native Method)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.os.MessageQueue.next(MessageQueue.java:125)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.os.Looper.loop(Looper.java:124)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at android.app.ActivityThread.main(ActivityThread.java:5279)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at java.lang.reflect.Method.invoke(Method.java:511)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
10-30 11:08:11.480: E/AndroidRuntime(13224): 	at dalvik.system.NativeStart.main(Native Method)
I don't use thumbnails in my app.I don't know why it gives me this error?
Last edit: by Docrishav.
The topic has been locked.

Why i a mgetting Nullpointer exception 4 years 2 weeks ago #7607

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
the log says:
com.radaee.util.PDFThumbView.onTouchEvent(PDFThumbView.java:75)
so you can debug at this line.
or even set debug point to contructor function in com.radaee.util.PDFThumbView
Last edit: by .
The topic has been locked.
  • Page:
  • 1
Powered by Kunena Forum