Skip to content

Commit bc3ba71

Browse files
Return null for null input
1 parent 8bc2d7d commit bc3ba71

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)