Skip to content

Commit

Permalink
null check entry for test
Browse files Browse the repository at this point in the history
wtf semicolon
  • Loading branch information
ghzdude committed Aug 12, 2024
1 parent 4d3398c commit 7884f84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void deleteEntry(@Nullable UUID owner, EntryTypes<?> type, String
public static <T extends VirtualEntry> void deleteEntry(@Nullable UUID owner, EntryTypes<T> type, String name,
Predicate<T> shouldDelete) {
T entry = getEntry(owner, type, name);
if (shouldDelete.test(entry))
if (entry != null && shouldDelete.test(entry))
deleteEntry(owner, type, name);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public String getColorStr() {
}

protected final String createName() {
;
return identifier() + this.color;
}

Expand Down

0 comments on commit 7884f84

Please sign in to comment.