ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.ui.newui.L.setCurrentTab(Object, Object)" because "this.core" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.ui.newui.L.setCurrentTab(Object, Object)" because "this.core" is null
at com.fs.starfarer.campaign.CampaignState.showCoreUITab(Unknown Source)
at stelnet.StelnetMod.resetIntelUi(StelnetMod.java:60)
at stelnet.StelnetMod.beforeGameSave(StelnetMod.java:32)
The following check is not enough:
CampaignUIAPI campaignUi = Global.getSector().getCampaignUI();
if (campaignUi == null) {
return;
}
campaignUi.showCoreUITab(CoreUITabId.INTEL, null);
We either need to find a way to check "core" is not null or modify onGameLoad since it will be called before the first save with newGame=true.
The following check is not enough:
We either need to find a way to check "core" is not null or modify
onGameLoadsince it will be called before the first save withnewGame=true.