From 2deca1037741e57485c4c130839383603e0cf23d Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 5 Jan 2024 18:45:55 -0700 Subject: [PATCH] Fixed possible crash --- .../GlueControl/Embedded/InstanceLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FRBDK/Glue/GameCommunicationPlugin/GlueControl/Embedded/InstanceLogic.cs b/FRBDK/Glue/GameCommunicationPlugin/GlueControl/Embedded/InstanceLogic.cs index c3257778e..18c2ae56f 100644 --- a/FRBDK/Glue/GameCommunicationPlugin/GlueControl/Embedded/InstanceLogic.cs +++ b/FRBDK/Glue/GameCommunicationPlugin/GlueControl/Embedded/InstanceLogic.cs @@ -512,7 +512,7 @@ public PositionedObject CreateEntity(string entityNameGameType, int currentAddOb if (ScreenManager.IsInEditMode) { var entityType = this.GetType().Assembly.GetType(entityNameGameType); - var hasBeenLoadedProperty = entityType.GetProperty("HasBeenLoadedWithGlobalContentManager"); + var hasBeenLoadedProperty = entityType?.GetProperty("HasBeenLoadedWithGlobalContentManager"); if (hasBeenLoadedProperty != null) { var hasBeenLoaded = (bool)hasBeenLoadedProperty.GetValue(null);