You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing this crash on a samsung device because the byte array passed from onPreviewFrame is null.
A simple null check in the library should do it.
Exception java.lang.NullPointerException: Attempt to get length of null array
at com.journeyapps.barcodescanner.SourceData.<init> (SourceFile:50)
at com.journeyapps.barcodescanner.camera.CameraManager$CameraPreviewCallback.onPreviewFrame (SourceFile:101)
at android.hardware.Camera$EventHandler.handleMessage (Camera.java:1160)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:145)
at android.os.HandlerThread.run (HandlerThread.java:6)