From 599b6315770eabb67052e6a31ee33d288a861fe0 Mon Sep 17 00:00:00 2001 From: Jorgen Dahl Date: Tue, 20 Feb 2024 14:52:24 -0500 Subject: [PATCH] Fix crash when no asm is found. --- src/NodeServices/WorkspaceEvents.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NodeServices/WorkspaceEvents.cs b/src/NodeServices/WorkspaceEvents.cs index 2159ac818ce..febe967650a 100644 --- a/src/NodeServices/WorkspaceEvents.cs +++ b/src/NodeServices/WorkspaceEvents.cs @@ -87,7 +87,13 @@ internal static void OnWorkspaceSettingsChanged(bool enableLegacyPolyCurveBehavi var handler = WorkspaceEnableLegacyPolyCurveSettingChanged; if (handler != null) { - handler(new WorkspacesSettingsChangedEventArgs(enableLegacyPolyCurveBehavior)); + try + { + handler(new WorkspacesSettingsChangedEventArgs(enableLegacyPolyCurveBehavior)); + } + catch (NullReferenceException) + { + } } } }