We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f719c4c commit e834f00Copy full SHA for e834f00
src/in/omerjerk/processing/video/android/Capture.java
@@ -187,7 +187,10 @@ public Camera getCamera() {
187
}
188
189
public static void printCompatibleResolutionsList(Capture capture) {
190
- Camera camera = capture.getCamera();
+ Camera camera = null;
191
+ if (capture != null) {
192
+ camera = capture.getCamera();
193
+ }
194
boolean selfOpen = false;
195
if (camera == null) {
196
camera = Camera.open(0);
0 commit comments