v1.2.1: fixed rare null pointer crashes with bag buttons
This commit is contained in:
committed by
Evan Debenham
parent
fa79fcd319
commit
8869abac93
@@ -624,7 +624,11 @@ public class InventoryPane extends Component {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String hoverText() {
|
protected String hoverText() {
|
||||||
return Messages.titleCase(bag.name());
|
if (bag != null) {
|
||||||
|
return Messages.titleCase(bag.name());
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user