diff --git a/core/src/com/google/zxing/oned/CodaBarReader.java b/core/src/com/google/zxing/oned/CodaBarReader.java index 7ecd28402..724ff798c 100644 --- a/core/src/com/google/zxing/oned/CodaBarReader.java +++ b/core/src/com/google/zxing/oned/CodaBarReader.java @@ -249,7 +249,7 @@ public final class CodaBarReader extends OneDReader { private void counterAppend(int e) { counters[counterLength] = e; counterLength++; - if (counterLength >= counterLength) { + if (counterLength >= counters.length) { int[] temp = new int[counterLength * 2]; System.arraycopy(counters, 0, temp, 0, counterLength); counters = temp;