-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes I get a NullPointerException and the app crashes #123
Comments
I checked the file ZBarScannerActivity.java at line 329, which contains this code: |
Today I've registered a new, more detailed, crash: Exception java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.setDisplayOrientation(int)' on a null object reference Free VM: 3.74MB Device Model: ASUS_Z00ED |
I have encountered this. Sometimes The #125 should address this. The camera will resume only when |
I got this error using this plugin (v 1.3.2) in an Apache Cordova app, running on a Asus ZenFone 2 Laser (ZE500KL) with Android 6.0
java.lang.NullPointerException: at org.cloudsky.cordovaPlugins.ZBarScannerActivity.onConfigurationChanged (ZBarScannerActivity.java:329) at android.app.ActivityThread.performConfigurationChanged (ActivityThread.java:4192) at android.app.ActivityThread.handleActivityConfigurationChanged (ActivityThread.java:4311) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1477) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:148) at android.app.ActivityThread.main (ActivityThread.java:5451) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)
The text was updated successfully, but these errors were encountered: