Avoid a false positive on empty PDF 417

git-svn-id: https://zxing.googlecode.com/svn/trunk@2218 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-03-05 18:41:20 +00:00
parent 99d4b42b91
commit 596e4a0871

View file

@ -119,6 +119,9 @@ final class DecodedBitStreamParser {
throw FormatException.getFormatInstance();
}
}
if (result.length() == 0) {
throw FormatException.getFormatInstance();
}
return new DecoderResult(null, result.toString(), null, null);
}