I found a NullReferenceException that appears when GetSlotFromShip is called on a ship that has its slot after a slot with a ship that is not built. In the attached screenshot GetSlotFromShip works only for the ships in slot 0 and 1.
Because of this bug GetSlotFromShip is pretty useless.
NullReferenceException: Object reference not set to an instance of an object
at BuildPanel.GetSlotFromShip (Int32 uid) [0x00000] in <filename unknown>:0
at CrplCore.ProcessCommands (Boolean start, Boolean final, Boolean gameLoaded, Boolean paused) [0x00000] in <filename unknown>:0
at CrplCore.GameUpdate (Boolean final, Boolean paused) [0x00000] in <filename unknown>:0
at UnitManager.GameUpdate () [0x00000] in <filename unknown>:0
at CommonUnit.GameUpdate () [0x00000] in <filename unknown>:0
at GameSpace.GameUpdate () [0x00000] in <filename unknown>:0
at GameSpace.Update () [0x00000] in <filename unknown>:0