Skip to content

Commit

Permalink
Merge pull request #115 from jenkinsci/fix-null-dismissed
Browse files Browse the repository at this point in the history
fix null in userheader dismissed
  • Loading branch information
mawinter69 authored Jun 3, 2024
2 parents c66905a + d01b4fd commit 09524ad
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public void setLinks(List<AppNavLink> links) {
this.links = links;
}

public Object readResolve() {
if (dismissedMessages == null) {
dismissedMessages = new HashSet<>();
}
return this;

Check warning on line 79 in src/main/java/io/jenkins/plugins/customizable_header/UserHeader.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 76-79 are not covered by tests
}

public Set<String> getDismissedMessages() {
return dismissedMessages;
}
Expand Down

0 comments on commit 09524ad

Please sign in to comment.