Skip to content

Commit 0ebfdf6

Browse files
committed
Fix crash when no asm is found. (DynamoDS#14958)
1 parent 10915c0 commit 0ebfdf6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/NodeServices/WorkspaceEvents.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ internal static void OnWorkspaceSettingsChanged(bool enableLegacyPolyCurveBehavi
8787
var handler = WorkspaceEnableLegacyPolyCurveSettingChanged;
8888
if (handler != null)
8989
{
90-
handler(new WorkspacesSettingsChangedEventArgs(enableLegacyPolyCurveBehavior));
90+
try
91+
{
92+
handler(new WorkspacesSettingsChangedEventArgs(enableLegacyPolyCurveBehavior));
93+
}
94+
catch (NullReferenceException)
95+
{
96+
}
9197
}
9298
}
9399
}

0 commit comments

Comments
 (0)