Handle a string possibly being null
An NPE can be thrown if message is null and `message.isBlank()` is called.
@@ -147,6 +147,9 @@ public class MessageTranslator {
* @return Bedrock formatted message
*/
public static String convertMessageLenient(String message, String locale) {
+ if (message == null) {
+ return "";
+ }
if (message.isBlank()) {
return message;
}
