Update app/core/src/main/java/stirling/software/SPDF/utils/text/TextDecodingHelper.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Balázs Szücs 2025-08-26 16:47:05 +02:00 committed by GitHub
parent 87b2103236
commit 91ca29e095
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,7 @@ public class TextDecodingHelper {
}
} catch (Exception ignored) {
}
if (!isPrintable(ch)) {
if (ch == null || !isPrintable(ch)) {
// Handle problematic character codes specifically
ch = "<EFBFBD>";
}