From d1eb6a612d6c08274d77b5708e356601c4f71775 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Tue, 29 Oct 2019 19:04:34 -0400 Subject: [PATCH] Fix for removing part panes --- File_Format_Library/FileFormats/Layout/Common.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/Layout/Common.cs b/File_Format_Library/FileFormats/Layout/Common.cs index 1e379018..59828872 100644 --- a/File_Format_Library/FileFormats/Layout/Common.cs +++ b/File_Format_Library/FileFormats/Layout/Common.cs @@ -2008,7 +2008,7 @@ namespace LayoutBXLYT public void RemoveNodeWrapper() { - if (NodeWrapper.Parent != null) + if (NodeWrapper != null && NodeWrapper.Parent != null) { var parent = NodeWrapper.Parent; parent.Nodes.Remove(NodeWrapper);