Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

NPE on set torch on #54

Open
bpappin opened this issue Mar 12, 2018 · 2 comments
Open

NPE on set torch on #54

bpappin opened this issue Mar 12, 2018 · 2 comments

Comments

@bpappin
Copy link

bpappin commented Mar 12, 2018

UPDATE:

This looks like a crash when one of my users clicks the flash button to turn on the light.
I dont have one of these Galaxy Tabs to test with.
If I were to guess from eh stack trace, I'd say that there may not be a flash on this device.

Device Brand: samsung
Device Model: Galaxy Tab E 9.6
Device Orientation: Portrait
Device RAM free: 383.99 MB
Device Disk free: 9.79 GB
Operating System Version: 7.1.1
Operating System Orientation: Portrait
Operating System Rooted: No
Crash Date: Mar 9, 2018, 2:38:00 PM

`Attempt to invoke interface method 'boolean java.util.List.contains(java.lang.Object)' on a null object reference

com.edwardvanraak.materialbarcodescanner.CameraSource.setFlashMode (CameraSource.java:557)
com.edwardvanraak.materialbarcodescanner.MaterialBarcodeScannerActivity.enableTorch (MaterialBarcodeScannerActivity.java:176)
com.edwardvanraak.materialbarcodescanner.MaterialBarcodeScannerActivity.access$300 (MaterialBarcodeScannerActivity.java:28)
com.edwardvanraak.materialbarcodescanner.MaterialBarcodeScannerActivity$2.onClick (MaterialBarcodeScannerActivity.java:115)
android.view.View.performClick (View.java:6306)
android.view.View$PerformClick.run (View.java:23962)
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:6823)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1557)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1445)`

@bpappin
Copy link
Author

bpappin commented Jun 4, 2018

bump

@bpappin
Copy link
Author

bpappin commented Jun 4, 2018

FYI:

This looks like its fixed at CameraSource.java:558, but not deployed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant