v1.2.1: fixed rare null pointer crashes with bag buttons

This commit is contained in:
Evan Debenham
2022-03-27 15:39:08 -04:00
committed by Evan Debenham
parent fa79fcd319
commit 8869abac93
@@ -624,7 +624,11 @@ public class InventoryPane extends Component {
@Override
protected String hoverText() {
return Messages.titleCase(bag.name());
if (bag != null) {
return Messages.titleCase(bag.name());
} else {
return null;
}
}
}