mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Fix null pointer exception (#885)
This commit is contained in:
parent
7c1f313c05
commit
fa691c238f
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue