-
Notifications
You must be signed in to change notification settings - Fork 106
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
Null pointer exception in design view #51
Comments
@karunanaik It's some bug with onLayout. It thinks the RecyclerView has been set. Found a work around: create your own
Also,
then call |
I got same error.But i fixed by using above code.The below code working fine.Thanks @OverRide
|
java.lang.NullPointerException at com.futuremind.recyclerviewfastscroll.RecyclerViewScrollListener.updateHandlePosition(RecyclerViewScrollListener.java:47) at com.futuremind.recyclerviewfastscroll.FastScroller.onLayout_Original(FastScroller.java:168) at com.futuremind.recyclerviewfastscroll.FastScroller.onLayout(FastScroller.java:-1) at android.view.View.layout(View.java:17520) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079) at android.view.View.layout(View.java:17520) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.support.constraint.ConstraintLayout.onLayout_Original(ConstraintLayout.java:1127) at android.support.constraint.ConstraintLayout.onLayout(ConstraintLayout.java:-1) at android.view.View.layout(View.java:17520) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at android.view.View.layout(View.java:17520) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079) at android.view.View.layout(View.java:17520) at android.view.ViewGroup.layout(ViewGroup.java:5612)
I get the above null pointer exception in my design view.
Below is my xml:
`
Can you please help me and let me know what am I missing here?
The text was updated successfully, but these errors were encountered: