Skip to content

Commit

Permalink
NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Jan 13, 2024
1 parent 553b242 commit 1aa37cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jasper/service/TaggingService.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public Instant tag(List<String> tags, String url, String origin) {
if (maybeRef.isEmpty()) throw new NotFoundException("Ref " + origin + " " + url);
var ref = maybeRef.get();
ref.removePrefixTags();
if (ref.getTags().contains("locked")) {
if (ref.getTags() != null && ref.getTags().contains("locked")) {
for (var t : tags) {
if (t.startsWith("-") && ref.getPlugins() != null && ref.getPlugins().has(t.substring(1))) {
throw new AccessDeniedException("Cannot untag locked Ref with plugin data");
Expand Down

0 comments on commit 1aa37cf

Please sign in to comment.