Skip to content

Commit

Permalink
bridge: fix NPE in DefaultXBLManager [BATIK-1313]
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Sep 5, 2023
1 parent 1f075f1 commit 2613711
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,13 @@ public void stopProcessing() {
ImportRecord[] irs = new ImportRecord[nSlots];
imports.values().toArray(irs);
for (ImportRecord ir : irs) {
if (ir.importElement.getLocalName().equals(XBL_DEFINITION_TAG)) {
removeDefinitionRef(ir.importElement);
} else {
removeImport(ir.importElement);
Element importElm = ir.importElement;
if (importElm != null) {
if (XBL_DEFINITION_TAG.equals(importElm.getLocalName())) {
removeDefinitionRef(importElm);
} else {
removeImport(importElm);
}
}
}

Expand Down

0 comments on commit 2613711

Please sign in to comment.