From a436f9c65d6bd295e1bd1411333d9cc17a637805 Mon Sep 17 00:00:00 2001 From: joshcrawfy Date: Wed, 21 Dec 2016 07:34:48 +1300 Subject: [PATCH] v2.8.0.2, add another null check... --- FilterExtension/Core.cs | 2 +- FilterExtension/Utility/PartType.cs | 2 +- .../000_FilterExtensions/FilterExtensions.dll | Bin 63488 -> 63488 bytes .../FilterExtensions.version | 2 +- Testing/FE_Testing.dll | Bin 10752 -> 10752 bytes 5 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FilterExtension/Core.cs b/FilterExtension/Core.cs index b72830b3..124af024 100644 --- a/FilterExtension/Core.cs +++ b/FilterExtension/Core.cs @@ -13,7 +13,7 @@ namespace FilterExtensions [KSPAddon(KSPAddon.Startup.MainMenu, true)] public class Core : MonoBehaviour { - public static readonly Version version = new Version(2, 8, 0, 1); + public static readonly Version version = new Version(2, 8, 0, 2); private static Core instance; public static Core Instance diff --git a/FilterExtension/Utility/PartType.cs b/FilterExtension/Utility/PartType.cs index 146a16b6..100cf449 100644 --- a/FilterExtension/Utility/PartType.cs +++ b/FilterExtension/Utility/PartType.cs @@ -429,7 +429,7 @@ public static bool checkModuleNameType(AvailablePart part, string value) Type string_type = Loaded_Modules[value]; foreach (PartModule pm in part.partPrefab.Modules) { - if (value == pm.moduleName || string_type.IsAssignableFrom(Loaded_Modules[pm.moduleName])) + if (value == pm.moduleName || (pm.moduleName != null && string_type.IsAssignableFrom(Loaded_Modules[pm.moduleName]))) return true; } } diff --git a/GameData/000_FilterExtensions/FilterExtensions.dll b/GameData/000_FilterExtensions/FilterExtensions.dll index 2884a0ff530e1a374bfc3f954d41cb508a17092d..1d87ac72bccdb0ea1fe220efa02fd1effab7a869 100644 GIT binary patch delta 3061 zcmY+`2~d>h83*wHw~Meq_`Y{pJ_ieIb`1*2FiKm~YGZ&zhfv2vR4C9GLsOC>)p(#m zr{Z!Xs~BR$wLlUZOd2U(L1!WHXf&ppnGjMn35Z7yL98M{YB6IdJ>KI1XPMa7xho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