v1.2.1: fixed null pointer crashes with action hover text

This commit is contained in:
Evan Debenham 2022-03-27 15:41:02 -04:00 committed by Evan Debenham
parent 8869abac93
commit d1c477f8f2

View File

@ -105,7 +105,12 @@ public class ActionIndicator extends Tag {
@Override
protected String hoverText() {
return Messages.titleCase(action.actionName());
String text = action.actionName();
if (text != null){
return Messages.titleCase(text);
} else {
return null;
}
}
public static void setAction(Action action){