android-zxingLibrary
android-zxingLibrary copied to clipboard
ViewFinderView报错Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1270) at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:257) at android.graphics.Canvas.drawBitmap(Canvas.java:1415) at com.uuzuche.lib_zxing.view.ViewfinderView.drawScanLight(ViewfinderView.java:208) at com.uuzuche.lib_zxing.view.ViewfinderView.onDraw(ViewfinderView.java:147) at android.view.View.draw(View.java:17250) at android.view.View.updateDisplayListIfDirty(View.java:16215) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.updateDisplayListIfDirty(View.java:16210) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.updateDisplayListIfDirty(View.java:16210) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.draw(View.java:17253) at android.view.View.updateDisplayListIfDirty(View.java:16215) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.updateDisplayListIfDirty(View.java:16210) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.updateDisplayListIfDirty(View.java:16210) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.updateDisplayListIfDirty(View.java:16210) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.updateDisplayListIfDirty(View.java:16210) at android.view.View.draw(View.java:17016) at android.view.ViewGroup.drawChild(ViewGroup.java:3777) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3560) at android.view.View.draw(View.java:17253) at com.android.internal.policy.DecorView.draw(DecorView.java:801) at android.view.View.updateDisplayListIfDirty(View.java:16215) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:677) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:683) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:797) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2997) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2791) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2382) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1372) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6774) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:926) at android.view.Choreographer.doCallbacks(Choreographer.java:735) at android.view.Choreographer.doFrame(Choreographer.java:667) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:912) at android.os.Handler.handleCallback(Handler.java:761) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6523) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)