skillcalculator: Null check
This commit is contained in:
@@ -539,7 +539,12 @@ public class BankedCalculator extends JPanel
|
||||
if (oldMapFlag)
|
||||
{
|
||||
CalculatorType calc = CalculatorType.getBySkill(currentSkill);
|
||||
SwingUtilities.invokeLater(() -> openBanked(calc));
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
if (calc != null)
|
||||
{
|
||||
openBanked(calc);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user