mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
fix potential unwrap on none
This commit is contained in:
@@ -309,6 +309,10 @@ fn getBarcodeMetadata<T: DetectionRXingResultRowIndicatorColumn>(
|
||||
// return leftBarcodeMetadata;
|
||||
// }
|
||||
|
||||
if leftBarcodeMetadata.is_none() {
|
||||
return None;
|
||||
}
|
||||
|
||||
if leftBarcodeMetadata.as_ref().unwrap().getColumnCount()
|
||||
!= rightBarcodeMetadata.as_ref().unwrap().getColumnCount()
|
||||
&& leftBarcodeMetadata
|
||||
|
||||
Reference in New Issue
Block a user