Skip to content

Commit

Permalink
fix for exception when nameList is not initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Jan 3, 2019
1 parent 4e832a3 commit 36a7fd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ARKBreedingStats/CreatureInfoInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public CreatureInfoInput()
regionColorIDs = new int[6];
Cooldown = new DateTime(2000, 1, 1);
Grown = new DateTime(2000, 1, 1);
NamesOfAllCreatures = new List<string>();
}

private void buttonAdd2Library_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -486,7 +487,7 @@ private void lblTribe_Click(object sender, EventArgs e)
private void textBoxName_TextChanged(object sender, EventArgs e)
{
// feedback if name already exists
if (NamesOfAllCreatures.Contains(textBoxName.Text))
if (NamesOfAllCreatures != null && NamesOfAllCreatures.Contains(textBoxName.Text))
{
textBoxName.BackColor = Color.Khaki;
}
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.29.3.2")]
[assembly: AssemblyFileVersion("0.29.3.3")]
[assembly: NeutralResourcesLanguage("en")]

2 changes: 1 addition & 1 deletion ARKBreedingStats/ver.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
285.106.2,0.29.3.2
285.106.2,0.29.3.3

0 comments on commit 36a7fd4

Please sign in to comment.