-
Notifications
You must be signed in to change notification settings - Fork 157
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
NullPointerException #82
Comments
@ankitdubey021 Hi! Which version of library do you use? |
@VEINHORN thank you for response. And here is my same code, you've mentioned. galleryView = ScrollGalleryView |
hey @VEINHORN i am also getting the same error kindly help |
hey @VEINHORN I'm also getting same error . Kindly Help |
I also getting same error so I just defined empty listener like below and problem solved:
for complete fix, in ScrollGalleryView.java class @VEINHORN should change addOnPageChangeListener method to this:
|
Yeah @VEINHORN pls, fix this issue and thanks to @mojtaba-yekta his solution is working. |
Can anyone suggest me, why i'm getting this exception?
java.lang.NullPointerException: Attempt to invoke interface method 'void androidx.viewpager.widget.ViewPager$OnPageChangeListener.onPageScrolled(int, float, int)' on a null object reference
at com.veinhorn.scrollgalleryview.ScrollGalleryView$5.onPageScrolled(
The text was updated successfully, but these errors were encountered: