Skip to content
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

NullPointerExcxeption on gestureDetector.onTouchEvent #63

Open
AnatoliNeuberger opened this issue Oct 22, 2023 · 1 comment
Open

NullPointerExcxeption on gestureDetector.onTouchEvent #63

AnatoliNeuberger opened this issue Oct 22, 2023 · 1 comment

Comments

@AnatoliNeuberger
Copy link

AnatoliNeuberger commented Oct 22, 2023

Hi, i have just updated EasyFlipView in my application to new version 3.0.3

By click on ImageVew, that is in the EasyFlipView easyFlipView.addView(deckView) i immediatly have a NullPointerException:

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.core.view.GestureDetectorCompat.onTouchEvent(android.view.MotionEvent)' on a null object reference
2023-10-22 12:06:57.656 20805-20805 AndroidRuntime          com.app.demo             E  	at com.wajahatkarim3.easyflipview.EasyFlipView.dispatchTouchEvent(EasyFlipView.java:462)

I have cleaned up a job after updating to new EasyFlipView version.

my configuration of view:

EasyFlipView easyFlipView = new EasyFlipView(context);
easyFlipView.setToHorizontalType();
easyFlipView.setFlipTypeFromBack();
easyFlipView.setAutoFlipBackTime(5_000);

ImageView image = new ImageView(context);
...
easyFlipView.addView(image);

ImageView deckView = new ImageView(context);
...
easyFlipView.addView(deckView);

easyFlipView.setOnFlipListener(...);

layout.addView(easyFlipView, lp);
@AnatoliNeuberger
Copy link
Author

Hello,
any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant