From 9b79d7df0944ddbf49831f8c39da52cbe4296a1e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 30 Jan 2022 20:06:05 +0100 Subject: [PATCH] Fix potential error --- Source/Editor/CustomEditors/Editors/GenericEditor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index 185b93381..426455dbe 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -563,7 +563,8 @@ namespace FlaxEditor.CustomEditors.Editors if (disableSingle && child is PropertyNameLabel) break; - child.Enabled = false; + if (child != null) + child.Enabled = false; } } }