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

NPE when trying to create state bitmap #2

Closed
davidmigloz opened this issue Dec 14, 2018 · 0 comments
Closed

NPE when trying to create state bitmap #2

davidmigloz opened this issue Dec 14, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@davidmigloz
Copy link
Owner

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
       at android.graphics.Bitmap.createBitmap(Bitmap.java:749)
       at com.davidmiguel.multistateswitch.MultiStateSwitch.createStateDrawable(MultiStateSwitch.java:410)
       at com.davidmiguel.multistateswitch.MultiStateSwitch.createStateSelector(MultiStateSwitch.java:366)
       at com.davidmiguel.multistateswitch.MultiStateSwitch.replaceState(MultiStateSwitch.java:4277)
       at android.view.View.performClick(View.java:6897)
       at android.widget.TextView.performClick(TextView.java:12693)
       at android.view.View$PerformClick.run(View.java:26101)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6944)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
@davidmigloz davidmigloz added the bug Something isn't working label Dec 14, 2018
@davidmigloz davidmigloz self-assigned this Dec 14, 2018
@davidmigloz davidmigloz changed the title Lib crashes when trying to create bitmap NPE when trying to create bitmap Dec 14, 2018
@davidmigloz davidmigloz changed the title NPE when trying to create bitmap NPE when trying to create state bitmap Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant