itext-java icon indicating copy to clipboard operation
itext-java copied to clipboard

Fix bug/issue when subtype is null on annotations

Open IvanFuentesR opened this issue 3 years ago • 0 comments

There are some PDF files where the getSubtype function returns null, which doesn't implement equals() and that leads to an error on line 120.

Prevent errors when the returned value on getSubtype is null, since on line 120 is going to try to call equals on the returned null.

This is a real bug/issue since in the company where I work IText is failing us because of that with some PDFs.

IvanFuentesR avatar Sep 14 '22 18:09 IvanFuentesR