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
E/AndroidRuntime(26360): FATAL EXCEPTION: main
E/AndroidRuntime(26360): Process: cn.rc100.rong_b, PID: 26360
E/AndroidRuntime(26360): java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera.startPreviewWithImageStream(RScanCamera.java:369)
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera.startPreview(RScanCamera.java:275)
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera.access$100(RScanCamera.java:51)
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera$1.onOpened(RScanCamera.java:161)
E/AndroidRuntime(26360): at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:134)
E/AndroidRuntime(26360): at android.os.Handler.handleCallback(Handler.java:751)
E/AndroidRuntime(26360): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(26360): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(26360): at android.app.ActivityThread.main(ActivityThread.java:6267)
E/AndroidRuntime(26360): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(26360): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime(26360): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
The text was updated successfully, but these errors were encountered:
在相机权限未授权情况下进行操作,多次点击会导致应用闪退:
Android 7.1.2
vivo
E/AndroidRuntime(26360): FATAL EXCEPTION: main
E/AndroidRuntime(26360): Process: cn.rc100.rong_b, PID: 26360
E/AndroidRuntime(26360): java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera.startPreviewWithImageStream(RScanCamera.java:369)
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera.startPreview(RScanCamera.java:275)
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera.access$100(RScanCamera.java:51)
E/AndroidRuntime(26360): at com.rhyme.r_scan.RScanCamera.RScanCamera$1.onOpened(RScanCamera.java:161)
E/AndroidRuntime(26360): at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:134)
E/AndroidRuntime(26360): at android.os.Handler.handleCallback(Handler.java:751)
E/AndroidRuntime(26360): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(26360): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(26360): at android.app.ActivityThread.main(ActivityThread.java:6267)
E/AndroidRuntime(26360): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(26360): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime(26360): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
The text was updated successfully, but these errors were encountered: