Avoid another NPE on null ResultPoint

This commit is contained in:
Sean Owen 2014-07-28 10:13:27 +01:00
parent 70b02ea882
commit 281721f2d9

View file

@ -106,6 +106,9 @@ public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader
float maxX = 0.0f;
float maxY = 0.0f;
for (ResultPoint point : resultPoints) {
if (point == null) {
continue;
}
float x = point.getX();
float y = point.getY();
if (x < minX) {