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(); }