amlcurran / ShowcaseView

[Archived] Highlight the best bits of your app to users quickly, simply, and cool...ly
5.6k stars 1.29k forks source link

NullPointerException in StandardShowcaseDrawer.erase #403

Open Redwid opened 8 years ago

Redwid commented 8 years ago

Hello, I've got a crash reported by crashlytics. Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Bitmap.eraseColor(int)' on a null object reference at com.github.amlcurran.showcaseview.StandardShowcaseDrawer.erase(StandardShowcaseDrawer.java:75) at com.github.amlcurran.showcaseview.ShowcaseView.dispatchDraw(ShowcaseView.java:246) at android.view.View.updateDisplayListIfDirty(View.java:13954) at android.view.View.getDisplayList(View.java:13982) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3286) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3265) at android.view.View.updateDisplayListIfDirty(View.java:13919) at android.view.View.getDisplayList(View.java:13982) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:284) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:290) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:342) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2574) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2399) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2023) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1087) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6040) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:793) at android.view.Choreographer.doCallbacks(Choreographer.java:606) at android.view.Choreographer.doFrame(Choreographer.java:575) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:779) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5538) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Device Huawei ALE-L21, Android 5.0.1