Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
Another stupid nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Mar 20, 2015
1 parent dc0794f commit 6a6b1d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FilterExtension/Utility/PartType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ internal static bool checkFolder(AvailablePart part, string value)

internal static bool checkFolder(AvailablePart part, string[] values)
{
string folder = Core.Instance.partPathDict[part.name].Split(new char[] { '\\', '/' })[0];
if (Core.Instance.partPathDict.ContainsKey(part.name))
{
string folder = Core.Instance.partPathDict[part.name].Split(new char[] { '\\', '/' })[0];
return values.Any(s => s.Trim() == folder);
}
return false;
}

Expand Down
Binary file modified GameData/000_FilterExtensions/FilterExtensions.dll
Binary file not shown.

0 comments on commit 6a6b1d5

Please sign in to comment.