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

Exception java.lang.NullPointerException #92

Closed
mrGabodroid opened this issue Sep 11, 2017 · 1 comment
Closed

Exception java.lang.NullPointerException #92

mrGabodroid opened this issue Sep 11, 2017 · 1 comment
Labels

Comments

@mrGabodroid
Copy link

Got this error in Firebase on: Micromax Micromax Q334,5.1:

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.setErrorCallback([REDACTED_DOMAIN_NAME]$ErrorCallback)' on a null object reference io.fotoapparat.routine.StartCameraRoutine.run (StartCameraRoutine.java) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112) java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587) java.lang.Thread.run (Thread.java:818)

I'm using Fotoapparat 1.3.0. with the given configuration:
fotoapparat = Fotoapparat.with(this) .into(cameraView) .previewScaleType(ScaleType.CENTER_CROP) .photoSize(biggestSize()) .lensPosition(back()) .focusMode(firstAvailable( continuousFocus(), autoFocus(), fixed() )) .frameProcessor(frameProcessor) .cameraErrorCallback(cameraErrorCallback) .build();

@Diolor Diolor added the bug label Sep 13, 2017
@Diolor
Copy link
Member

Diolor commented Dec 31, 2017

If happens in v2 as well, feel free to comment

@Diolor Diolor closed this as completed Dec 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants