v0.9.0: added a safety check to TalentsPane to fix rare crashes

This commit is contained in:
Evan Debenham 2020-09-28 01:05:12 -04:00
parent 12b7e47883
commit c34c3cf82e

View File

@ -64,8 +64,10 @@ public class TalentsPane extends ScrollPane {
@Override
public void upgradeTalent() {
super.upgradeTalent();
setupStars();
TalentsPane.this.layout();
if (parent != null) {
setupStars();
TalentsPane.this.layout();
}
}
};
buttons.add(btn);