An odd error I've never seen before...
An NPE being generated when the 'add building' menu is opened on a colony with a moon.
Spoiler
1560874 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at data.campaign.econ.industries.Astropolis_Station.numAstroInOrbit(Astropolis_Station.java:343)
at data.campaign.econ.industries.Astropolis_Station.isAvailableToBuild(Astropolis_Station.java:373)
at com.fs.starfarer.campaign.ui.marketinfo.IndustryPickerDialog.updateTable(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.IndustryPickerDialog.createUI(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.IndustryPickerDialog.<init>(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.IndustryListPanel.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.newnew.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.I.Ò00000(Unknown Source)
at com.fs.starfarer.ui.I.processInput(Unknown Source)
at com.fs.starfarer.ui.O0Oo.o00000(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 moon in question was
not generated by a vanilla process, but rather one of the 'tiny' moons created by
this mod.
There may be some odd interaction with the script that's checking for the ability to build astropolis stations.
Just for confirmation, I disabled the ability to build those stations and the error no longer occurs.