Skip to content

Commit

Permalink
Fix the NullReference bug when closing the vessel GUI in flight
Browse files Browse the repository at this point in the history
  • Loading branch information
KSP-TaxiService committed Jun 17, 2017
1 parent 58f9843 commit f65c24e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CommNetConstellation/UI/VesselSetupDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public VesselSetupDialog(string title, Vessel vessel, Callback<Vessel> updateCa

protected override void OnPreDismiss()
{
this.updateCallback(this.hostVessel);
if(this.updateCallback != null)
this.updateCallback(this.hostVessel);

this.ReleaseInputLocks();
}

Expand Down

0 comments on commit f65c24e

Please sign in to comment.