Skip to content

Commit

Permalink
Prevent Null entry in CompatibleKSPVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
politas committed Mar 29, 2019
1 parent 3cf72c5 commit 7a079a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GUI/CompatibleKspVersionsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ private void AddVersionToListButton_Click(object sender, EventArgs e)
{
return;
}
if (AddVersionToListTextBox.Text.ToLower() == "any")
{
MessageBox.Show("Version has invalid format", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
try
{
var version = KspVersion.Parse(AddVersionToListTextBox.Text);
Expand Down

0 comments on commit 7a079a8

Please sign in to comment.