From ba6676b6253c5a497e23902f34386e309afc1eb1 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sat, 5 Mar 2022 23:44:59 -0800 Subject: [PATCH] Hide NRE warning in Rider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit its terrible but I've never seen it NRE so 🤷‍♂️ --- Source/ConformalDecals/ModuleConformalFlag.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/ConformalDecals/ModuleConformalFlag.cs b/Source/ConformalDecals/ModuleConformalFlag.cs index fd7eac6..ca249f3 100644 --- a/Source/ConformalDecals/ModuleConformalFlag.cs +++ b/Source/ConformalDecals/ModuleConformalFlag.cs @@ -62,6 +62,8 @@ namespace ConformalDecals { // Button for selecting a flag // This is a bit of a hack to bring up the stock flag selection menu // When its done, it calls OnCustomFlagSelected() + + // ReSharper disable once PossibleNullReferenceException var flagBrowser = (Instantiate((Object) (new FlagBrowserGUIButton(null, null, null, null)).FlagBrowserPrefab) as GameObject).GetComponent(); flagBrowser.OnFlagSelected = OnCustomFlagSelected; }