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

NullPointerException in RecyclerView #45

Open
BehnamMaboodi opened this issue Dec 1, 2015 · 4 comments · May be fixed by #51
Open

NullPointerException in RecyclerView #45

BehnamMaboodi opened this issue Dec 1, 2015 · 4 comments · May be fixed by #51

Comments

@BehnamMaboodi
Copy link

JazzyHelper throws Null Pointer Exception while scroll very (very) fast (only on recyclerview)

NullPointerException
System.err:  at jazzylistview.JazzyHelper.doJazzinessImpl(JazzyHelper.java:204)
System.err:  at jazzylistview.JazzyHelper.doJazziness(JazzyHelper.java:195)
System.err:  at jazzylistview.JazzyHelper.onScrolled(JazzyHelper.java:121)
System.err:  at jazzylistview.JazzyRecyclerViewScrollListener.onScrolled(JazzyRecyclerViewScrollListener.java:37)
@jameltheone
Copy link

Same problem here:

Fatal Exception: java.lang.NullPointerException
at com.twotoasters.jazzylistview.JazzyHelper.doJazzinessImpl(JazzyHelper.java:197)
at com.twotoasters.jazzylistview.JazzyHelper.doJazziness(JazzyHelper.java:189)
at com.twotoasters.jazzylistview.JazzyHelper.onScrolled(JazzyHelper.java:115)
at com.twotoasters.jazzylistview.recyclerview.JazzyRecyclerViewScrollListener.onScrolled(JazzyRecyclerViewScrollListener.java:24)
at android.support.v7.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:3704)
at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:3859)

Is it possible to merge with this fork which seems to avoid the problem?

@BehnamMaboodi
Copy link
Author

This fork seems useful , I think this will fix the issue. Also You can download the source code and add this lines yourself , I solved this problem by adding a simple "try-catch" statement to the same line.

@FizaUlfat
Copy link

where should i add try catch statment

@BehnamMaboodi BehnamMaboodi linked a pull request Oct 26, 2016 that will close this issue
@BehnamMaboodi
Copy link
Author

@FizaUlfat Check pull request #51
You can merge it yourself to your own fork.

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

Successfully merging a pull request may close this issue.

3 participants