From 113b2329d36ab7966d9f9feeb8772454a76ccc34 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Wed, 18 Mar 2015 23:23:04 +1300 Subject: [PATCH] fix for nullref --- FilterExtension/ConfigNodes/customCategory.cs | 5 ++++- .../000_FilterExtensions/FilterExtensions.dll | Bin 41984 -> 41984 bytes 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/FilterExtension/ConfigNodes/customCategory.cs b/FilterExtension/ConfigNodes/customCategory.cs index 051f6c2b..51d206d3 100644 --- a/FilterExtension/ConfigNodes/customCategory.cs +++ b/FilterExtension/ConfigNodes/customCategory.cs @@ -196,7 +196,10 @@ private void generateEngineTypes() } engines.Add(name); } - subCategories.AddUniqueRange(engines); + if (subCategories != null) + subCategories.AddUniqueRange(engines); + else + subCategories = engines; } private void makeTemplate(ConfigNode node) diff --git a/GameData/000_FilterExtensions/FilterExtensions.dll b/GameData/000_FilterExtensions/FilterExtensions.dll index 99f0eba3ec9a62271375c46bef93d437b8606340..0e07d4f733ec09af312f87ccf570f49d640d96fd 100644 GIT binary patch delta 2600 zcmYk-YfzL`7zgnGd0pP!#T$qMf*2(x2-K3u#YhoRND%=6@e+zQf~8Vk$~1j<6<3r+ zc*PI_6%YhP4QEG9$5Cq>)5-kQ2huKT2F;Y09A?@YwVwB!qq!d#e*B+z&vTY@p0!_5 z>{pcPa^>f2eaA?)Qa?P0ji_NvV{2+0O!Lh;3;s%{p9;L-ar-K(RaWKRYSEZ~)IcSC zFrcd8DiAqVQNw*mZg1~tDS27p#)A%gqd3tYcCK1HcfO8N-yVFbc$hQy{rP|j6r`PD0yh2WA+ zGeQR*dASgR&^RFv*R6OVlbT4SixP!G)Fl{+us4Mg)k*9n9Oc@A4Aq5DJWMh&CuVbD zqNpt9YMdmrQB7x|h)ssEz5{#J0`>}$CmW%TR<)3g!iZEuwK%RWCbe=oaEh7%SoS;3uEv(->;4?pG>bY$l#mM(e9h+6^=$~o7UH%4oNac zz{UI4v6wU#&0G$&4LM2w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