mirror of
https://github.com/status-im/qzxing.git
synced 2025-01-11 19:44:36 +00:00
Bug fix for edge case in UPC reader. Row to be decoded was null producing null results. Added TODO for future work.
This commit is contained in:
parent
5507ab4786
commit
c916e0952b
@ -74,6 +74,11 @@ Ref<Result> MultiFormatUPCEANReader::decodeRow(int rowNumber, Ref<BitArray> row)
|
||||
continue;
|
||||
}
|
||||
|
||||
//added this because reader->decodeRow returns null if row is null
|
||||
//TODO: investigate why the execution reaches here with empty row.
|
||||
if(result.empty())
|
||||
continue;
|
||||
|
||||
// Special case: a 12-digit code encoded in UPC-A is identical
|
||||
// to a "0" followed by those 12 digits encoded as EAN-13. Each
|
||||
// will recognize such a code, UPC-A as a 12-digit string and
|
||||
|
Loading…
x
Reference in New Issue
Block a user