Skip to content

Commit 7e23bad

Browse files
authored
Merge pull request #601 from tonythemacaroni/main
Return null for null input
2 parents 8bc2d7d + bc3ba71 commit 7e23bad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • core/src/main/java/com/nisovin/magicspells/util

core/src/main/java/com/nisovin/magicspells/util/Util.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ public static Component getPlainComponentFromString(String input) {
692692
}
693693

694694
public static Component getMiniMessage(String input) {
695+
if (input == null) return null;
695696
if (input.isEmpty()) return Component.empty();
696697

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

0 commit comments

Comments
 (0)