Issue 1778 maybe avoid NPE

git-svn-id: https://zxing.googlecode.com/svn/trunk@2892 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-09-09 20:23:30 +00:00
parent 23ebe5710c
commit 6c103e7840

View file

@ -144,6 +144,9 @@ public final class PDF417ScanningDecoder {
return null;
}
int[] rowHeights = rowIndicatorColumn.getRowHeights();
if (rowHeights == null) {
return null;
}
int maxRowHeight = getMax(rowHeights);
int missingStartRows = 0;
for (int rowHeight : rowHeights) {