Skip to content

Commit 9f90ded

Browse files
committed
Handle rare case were camera was not null and previewSize was while asynchronously initializing the camera
1 parent 941709c commit 9f90ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/io/snabble/sdk/ui/scanner/BarcodeScannerView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ public void setRestrictScanningToIndicator(boolean restrictScanningToIndicator)
726726
}
727727

728728
private void updateTransform() {
729-
if(camera == null){
729+
if(camera == null || previewSize == null){
730730
return;
731731
}
732732

0 commit comments

Comments
 (0)