mmin18/RealtimeBlurView

NullPointerException

SamYStudiO opened this issue · 0 comments

Got that NPE lately from crash report (device Samsung with API 24)

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v8.renderscript.Allocation.copyFrom(android.graphics.Bitmap)' on a null object reference
com.github.mmin18.widget.RealtimeBlurView.blur (RealtimeBlurView.java:206)
com.github.mmin18.widget.RealtimeBlurView$1.onPreDraw (RealtimeBlurView.java:249)
android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:1013)
android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2506)
android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1515)
android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7091)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:927)
android.view.Choreographer.doCallbacks (Choreographer.java:702)
android.view.Choreographer.doFrame (Choreographer.java:638)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:913)
android.os.Handler.handleCallback (Handler.java:751)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6682)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)