Skip to content

Commit

Permalink
null-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Oct 8, 2019
1 parent 82f4c02 commit fcad741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ARKBreedingStats/Form1.collection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ private bool LoadCollectionFile(string filePath, bool keepCurrentCreatures = fal
|| !creatureCollection.creatures.Any(c => c.Species.Equals(selectedlibrarySpecies))
)
selectedlibrarySpecies = speciesSelector1.SelectedSpecies;
listBoxSpeciesLib.SelectedIndex = listBoxSpeciesLib.Items.IndexOf(selectedlibrarySpecies);
if (selectedlibrarySpecies != null)
listBoxSpeciesLib.SelectedIndex = listBoxSpeciesLib.Items.IndexOf(selectedlibrarySpecies);

filterListAllowed = true;
FilterLib();
Expand Down

0 comments on commit fcad741

Please sign in to comment.