diff --git a/core/src/main/java/com/google/zxing/NotFoundException.java b/core/src/main/java/com/google/zxing/NotFoundException.java index 863526af4..a00c3fe61 100644 --- a/core/src/main/java/com/google/zxing/NotFoundException.java +++ b/core/src/main/java/com/google/zxing/NotFoundException.java @@ -34,7 +34,7 @@ public final class NotFoundException extends ReaderException { } public static NotFoundException getNotFoundInstance() { - return INSTANCE; + return isStackTrace ? new NotFoundException() : INSTANCE; } } \ No newline at end of file