Fix null pointer exception (#885)

This commit is contained in:
Michal Hernas 2017-10-08 18:11:51 +02:00 committed by Sean Owen
parent 7c1f313c05
commit fa691c238f

View file

@ -163,6 +163,9 @@ final class DecodeWorker implements Callable<Integer> {
output.write("Found " + result.getResultPoints().length + " result points.\n");
for (int pointIndex = 0; pointIndex < result.getResultPoints().length; pointIndex++) {
ResultPoint rp = result.getResultPoints()[pointIndex];
if (rp == null) {
continue;
}
output.write(" Point " + pointIndex + ": (" + rp.getX() + ',' + rp.getY() + ')');
if (pointIndex != result.getResultPoints().length - 1) {
output.write('\n');