Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix "java.lang.NullPointerException: Attempt to invoke virtual method…
… 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference"
  • Loading branch information
Gioxxy committed Jul 13, 2020
commit 920c963d09c64ad1984e89f6226c10cf649db3aa
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ public void resumeVideoRecording(@NonNull final Result result) {
}

public void startPreview() throws CameraAccessException {
if(pictureImageReader == null || pictureImageReader.getSurface() == null) {return;}
createCaptureSession(CameraDevice.TEMPLATE_PREVIEW, pictureImageReader.getSurface());
}

Expand Down