From 8265a923a7a6fb9302f909b74d62a35fc79a9feb Mon Sep 17 00:00:00 2001 From: Sven Geusens Date: Fri, 13 Sep 2024 15:24:01 +0200 Subject: [PATCH] Fix null ref exception --- .../src/libs/context-api/debug/context-data.function.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/libs/context-api/debug/context-data.function.ts b/src/Umbraco.Web.UI.Client/src/libs/context-api/debug/context-data.function.ts index e82cbc7f37..1cb945439c 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/context-api/debug/context-data.function.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/context-api/debug/context-data.function.ts @@ -48,7 +48,7 @@ function contextItemData(contextInstance: any): UmbDebugContextItemData { case 'object': // Check if the object is an observable (by checking if it has a subscribe method/function) - const isSubscribeLike = 'subscribe' in value && typeof value['subscribe'] === 'function'; + const isSubscribeLike = value && 'subscribe' in value && typeof value['subscribe'] === 'function'; const isWebComponent = value instanceof HTMLElement; let valueToDisplay = 'Complex Object';