Skip to content

Commit

Permalink
NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Jul 25, 2023
1 parent f0965ea commit bba29fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jasper/service/dto/DtoMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ protected void userUrlsMetadata(Metadata source, @MappingTarget MetadataDto targ
if (auth.getUserTag() == null) return;
var prefix = "tag:/" + auth.getUserTag().tag + "?url=";
target.setUserUrls(source.getPlugins().entrySet().stream()
.filter(e -> e.getValue().stream().anyMatch(url -> url.startsWith(prefix)))
// TODO: how is null getting in here
.filter(e -> e.getValue().stream().anyMatch(url -> url != null && url.startsWith(prefix)))
.map(Map.Entry::getKey)
.toList()
);
Expand Down

0 comments on commit bba29fe

Please sign in to comment.