Skip to content

Commit

Permalink
Merge pull request #601 from tonythemacaroni/main
Browse files Browse the repository at this point in the history
Return null for null input
  • Loading branch information
Chronoken committed Jul 9, 2022
2 parents 8bc2d7d + bc3ba71 commit 7e23bad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/com/nisovin/magicspells/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ public static Component getPlainComponentFromString(String input) {
}

public static Component getMiniMessage(String input) {
if (input == null) return null;
if (input.isEmpty()) return Component.empty();

// Convert legacy color patterns to MiniMessage format, then deserialize it.
Expand Down

0 comments on commit 7e23bad

Please sign in to comment.