Never return null from Widget#getMessage since the

narrator will always dereference it, leading to a crash.
This commit is contained in:
Sebastian Hartte
2020-07-19 12:04:15 +02:00
parent 755ac12b8a
commit 0367b35ce0
3 changed files with 3 additions and 3 deletions
@@ -314,7 +314,7 @@ public class SettingToggleButton<T extends Enum<T>> extends IconButton {
return name + '\n' + sb;
}
return null;
return "";
}
public String getFillVar() {
@@ -99,7 +99,7 @@ public class ToggleButton extends Button implements ITooltip {
return name + '\n' + sb;
}
return null;
return "";
}
@Override
@@ -93,7 +93,7 @@ public class FluidTankWidget extends Widget implements ITooltip {
return desc + "\n" + amountToText;
}
return null;
return "";
}
@Override