Skip to content

Commit

Permalink
Handle NPE when filter is not run by returning empty Set
Browse files Browse the repository at this point in the history
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
  • Loading branch information
jelovirt committed Mar 25, 2024
1 parent 2309e5d commit bdd967a
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
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 bdd967a

Please sign in to comment.