From c38e0281838453dfd20c3c437110c56ee4c1fdf2 Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" Date: Fri, 6 Oct 2023 15:45:44 -0400 Subject: [PATCH] Null check --- src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs index 8a8d870af88..2c410c077f4 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs @@ -573,7 +573,7 @@ public override void Dispose() Errors.Clear(); Annotations.Clear(); InCanvasSearchViewModel?.Dispose(); - NodeAutoCompleteSearchViewModel.LuceneUtility.DisposeAll(); + NodeAutoCompleteSearchViewModel.LuceneUtility?.DisposeAll(); NodeAutoCompleteSearchViewModel?.Dispose(); }