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