Skip to content

Commit

Permalink
fix null error
Browse files Browse the repository at this point in the history
  • Loading branch information
Oribuin committed Jun 13, 2024
1 parent 340bf43 commit d6ce0ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public Category getFirst(CategoryType categoryType) {
* @return The category
*/
public Category getCategory(String id) {
if (this.cachedCategories.isEmpty()) return null;
if (this.cachedCategories.isEmpty() || id == null) return null;

return this.cachedCategories.get(id.toLowerCase());
}
Expand Down

0 comments on commit d6ce0ed

Please sign in to comment.