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

GLES20Canvas.drawRoundRect NullPointerException #16

Open
githubfan12221030 opened this issue Feb 12, 2015 · 2 comments
Open

GLES20Canvas.drawRoundRect NullPointerException #16

githubfan12221030 opened this issue Feb 12, 2015 · 2 comments

Comments

@githubfan12221030
Copy link

Hello.
Thanks for your excellent library.
But when i am going to implement this to my Listview, i am getting nullpointerexception.
java.lang.NullPointerException
at android.view.GLES20Canvas.drawRoundRect(GLES20Canvas.java:1222)
at com.hagoole.handofgod.widget.IndexScroller.draw(IndexScroller.java:75)
at com.hagoole.handofgod.widget.IndexableListView.draw(IndexableListView.java:70)
at android.view.View.getDisplayList(View.java:13448)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3088)
at android.view.View.getDisplayList(View.java:13386)
at android.view.View.getDisplayList(View.java:13490)
at android.view.HardwareRenderer$GlRenderer.buildDisplayList(HardwareRenderer.java:1570)
at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1449)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2415)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2287)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1910)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1013)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5736)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:544)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5068)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
at dalvik.system.NativeStart.main(Native Method)

Anyone help me.
Thanks.

@PalakSDarji
Copy link

I am getting same error ... What are the solutions? What have you done? please guide me.

@stefanoslig
Copy link

Set FrameLayout as the root Layout in your xml and set wrap_content in the width and height of listview. This, maybe will solve your problem

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