Skip to content
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

toggleFlash getting null pointer error #9

Open
Miteshmakwana73 opened this issue Aug 1, 2018 · 0 comments
Open

toggleFlash getting null pointer error #9

Miteshmakwana73 opened this issue Aug 1, 2018 · 0 comments

Comments

@Miteshmakwana73
Copy link

i am trying to turn on/off flashligh on click but getting this error

08-01 17:06:32.231 28783-28783/com.rayvatapps.launcher E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.rayvatapps.launcher, PID: 28783
    java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.noob.noobcameraflash.Utilities.CameraFlashUtility.isFlashOn()' on a null object reference
        at com.noob.noobcameraflash.managers.NoobCameraManager.isFlashOn(NoobCameraManager.java:55)
        at com.noob.noobcameraflash.managers.NoobCameraManager.toggleFlash(NoobCameraManager.java:67)
        at com.rayvatapps.launcher.MainActivity$10.onClick(MainActivity.java:304)
        at android.view.View.performClick(View.java:5647)
        at android.view.View$PerformClick.run(View.java:22465)
        at android.os.Handler.handleCallback(Handler.java:754)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:163)
        at android.app.ActivityThread.main(ActivityThread.java:6239)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant