Skip to content

Commit

Permalink
Fixed NPE in TCK Webservices13
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 20, 2022
1 parent de13ab5 commit c97b99d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,10 @@ protected void addNamespaceDeclaration(Element node, Descriptor descriptor) {
@Override
public void addPrefixMapping(String prefix, String uri) {
Descriptor descriptor = getDescriptor();
descriptor.addPrefixMapping(prefix, uri);
// FIXME: two LocalizedNode children return null!!!
if (descriptor != null) {
descriptor.addPrefixMapping(prefix, uri);
}
}

/**
Expand Down

0 comments on commit c97b99d

Please sign in to comment.