From 91ca29e09562c6f25323292409d75d3a90b308eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Sz=C3=BCcs?= <127139797+balazs-szucs@users.noreply.github.com> Date: Tue, 26 Aug 2025 16:47:05 +0200 Subject: [PATCH] Update app/core/src/main/java/stirling/software/SPDF/utils/text/TextDecodingHelper.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../stirling/software/SPDF/utils/text/TextDecodingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/src/main/java/stirling/software/SPDF/utils/text/TextDecodingHelper.java b/app/core/src/main/java/stirling/software/SPDF/utils/text/TextDecodingHelper.java index 8c7e4cfbe..00c3db099 100644 --- a/app/core/src/main/java/stirling/software/SPDF/utils/text/TextDecodingHelper.java +++ b/app/core/src/main/java/stirling/software/SPDF/utils/text/TextDecodingHelper.java @@ -123,7 +123,7 @@ public class TextDecodingHelper { } } catch (Exception ignored) { } - if (!isPrintable(ch)) { + if (ch == null || !isPrintable(ch)) { // Handle problematic character codes specifically ch = "�"; }