-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.ViewGroup.dispatchTouchEvent(android.view.MotionEvent)' on a null object reference #239
Comments
Add to FolioWebView.java if (webViewPager! = Null) webViewPager.dispatchTouchEvent (event); |
@ngokhongkn Can you please share EPUB file with us so that we can investigate? @javavirys the solution you proposed would not make the Horizontal scrolling feature work. It would be helpful if you can share EPUB file with us. This generally happens when JS Horizontal pagination code doesn't give callback to Java code - FolioReader-Android/folioreader/src/main/assets/js/Bridge.js Lines 486 to 523 in 1545995
Lines 742 to 749 in 1545995
FolioReader-Android/folioreader/src/main/java/com/folioreader/view/FolioWebView.java Lines 154 to 166 in 1545995
|
Here's the epub |
@javavirys I am unable to reproduce the issue. |
Hi everybody |
@mahavir155 I think this bug still exists due to the limitation of nanohttpd. Fast swiping between chapters leads to some connection problem between client and server. Let's keep it open. |
07-10 08:43:55.768 32514-32514/de.zweidenker.rheinwerk_reader E/AndroidRuntime: FATAL EXCEPTION: main
Process: de.zweidenker.rheinwerk_reader, PID: 32514
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.ViewGroup.dispatchTouchEvent(android.view.MotionEvent)' on a null object reference
at com.folioreader.view.FolioWebView.computeHorizontalScroll(FolioWebView.java:121)
at com.folioreader.view.FolioWebView.onTouchEvent(FolioWebView.java:108)
at android.view.View.dispatchTouchEvent(View.java:10779)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2859)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2535)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:582)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1885)
at android.app.Activity.dispatchTouchEvent(Activity.java:3240)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:71)
The text was updated successfully, but these errors were encountered: