From 491006ac3bbc046f5850f7f40c936e0e81f85274 Mon Sep 17 00:00:00 2001 From: Sean Owen Date: Tue, 11 Jan 2022 10:48:17 -0600 Subject: [PATCH] Add isStackTrace support to NotFoundException --- core/src/main/java/com/google/zxing/NotFoundException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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