Skip to content

Commit

Permalink
Merge pull request #4449 from dita-ot/feature/keyref-parser-npe
Browse files Browse the repository at this point in the history
Handle NPE when filter is not run by returning empty Set
  • Loading branch information
jelovirt committed Apr 5, 2024
2 parents 2309e5d + bdd967a commit 4976143
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/dita/dost/writer/KeyrefPaser.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ public void setKeyDefinition(final KeyScope definitionMap) {
* Get set of link targets which have normal processing role. Paths are relative to current file.
*/
public Set<URI> getNormalProcessingRoleTargets() {
if (normalProcessingRoleTargets == null) {
return Set.of();
}
return Collections.unmodifiableSet(normalProcessingRoleTargets);
}

Expand Down

0 comments on commit 4976143

Please sign in to comment.