itext-java
itext-java copied to clipboard
Fix bug/issue when subtype is null on annotations
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.