Hello, i have a weird problem.
I cannot reproduce the bug, just one person has this crash(2times).
On my mod, i generate a BountyEvent with a faction then set the fleet with a casual faction(like Pirate)
fleet.setFaction(GS_Constants.GSFACTION_ID, true);
When this fleet catch the player and then crash.
332599 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException java.lang.NullPointerException at src.data.scripts.campaign.missions.GS_EventEndlessBattle.getCurrentImage(GS_EventEndlessBattle.java:438) at com.fs.starfarer.campaign.CampaignEngine.reportEventStage(Unknown Source) at com.fs.starfarer.campaign.CampaignEngine.reportEventStage(Unknown Source) at src.data.scripts.campaign.missions.GS_EventEndlessBattle.advance(GS_EventEndlessBattle.java:242) at com.fs.starfarer.campaign.events.CampaignEventManager.advance(Unknown Source) at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source) at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source) at com.fs.starfarer.BaseGameState.traverse(Unknown Source) at com.fs.state.AppDriver.begin(Unknown Source) at com.fs.starfarer.combat.CombatMain.main(Unknown Source) at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
The game try to catch the logo of the fleet and get a null.
But, this thing happens for this player after the 17th to 19th BountyEvent.(Where the fleet points is bigger each time(20capitals+ at this moment))
@Override
public String getCurrentImage() {
return faction.getLogo();
}
The code is here, but i do not think this is usefull, like this thing is a random crash where just the fleet size of the fleet look like a problem.
The only other link except the size is the faction used for the generation, the remnant faction.
One of these fleet:
But i am sure than every available faction is set and have a logo.