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 #34

Closed
fleoparra opened this issue Jun 21, 2018 · 4 comments
Closed

NullPointerException #34

fleoparra opened this issue Jun 21, 2018 · 4 comments

Comments

@fleoparra
Copy link

Hi.

We use fast scroller on a recycler view but some of user's session (We use Fabric) show this error:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v7.widget.RecyclerView.computeVerticalScrollOffset()' on a null object reference
at com.l4digital.fastscroll.FastScroller.getScrollProportion(FastScroller.java:443)
at com.l4digital.fastscroll.FastScroller.access$000(FastScroller.java:51)
at com.l4digital.fastscroll.FastScroller$3.run(FastScroller.java:221)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:251)
at android.app.ActivityThread.main(ActivityThread.java:6589)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Library Version:
api 'com.l4digital.fastscroll:fastscroll:1.1.1'

@randr0id
Copy link
Member

randr0id commented Jun 21, 2018

Thank you for opening this issue. This was fixed by pull request #32. I will be releasing an update that includes this fix soon, and will then update this issue.

@randr0id
Copy link
Member

Fixed with commit 6602d1c and released in version 1.1.2.

@zdunaisky-chwy
Copy link

@randr0id I was just about to post this issue! Thanks for the fix and the awesome lib :)

@randr0id
Copy link
Member

randr0id commented Jul 2, 2018

Hi @Zacharyyy! Thanks for the support 😁

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

3 participants