Hi Team,
Redaction is failing for a potm file in freebsd with below exception.
java.lang.NullPointerException: Cannot invoke "com.groupdocs.redaction.internal.c.a.s.pt.ne(boolean)" because "<local3>" is nul
Code that is failing
try(Redactor redactor = new Redactor(App.class.getResourceAsStream("/abc16a5.potm"));
OutputStream target = Files.newOutputStream(Paths.get("redacted.potm"))) {
redactor.apply(new ExactPhraseRedaction("あ", new ReplacementOptions("*")));
RasterizationOptions ro = new RasterizationOptions();
ro.setEnabled(false);
redactor.save(target, ro);
}
Below is my system details
OS: FreeBSD 13
Java: “17.0.11” 2024-04-16 OpenJDK 64-Bit Server VM (build 17.0.11+9-1, mixed mode, sharing)
Redaction SDK: 25.12
PFA of the file that is causing the issue.
abc16a12.potm.zip (26.5 KB)
If you can not reproduce at least give some pointers for the reason that might cause this issue, as your code is closed source.