BATIK-1318: NullPointerException in SAXSVGDocumentFactory.resolveEntity() #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Suggested fix for BATIK-1318.
In 2014 the
SAXSVGDocumentFactory
class along with thedtdids.properties
resource have been moved fromorg.apache.batik.dom.svg
toorg.apache.batik.anim.dom
package:However, the resources referenced in
dtdids.properties
are still inorg.apache.batik.dom.svg
package:This makes the following
Class.getResource()
returnnull
and ultimately cause NPE:xmlgraphics-batik/batik-anim/src/main/java/org/apache/batik/anim/dom/SAXSVGDocumentFactory.java
Lines 386 to 392 in 42f6965
I can see the overall issue has been partially addressed in f2dac46. I suggest further the
dtdids.properties
should be updated with absolute resource names.