From a4d66c2b535e7680e820ddf90dfcb457b5b41464 Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" Date: Tue, 24 Oct 2023 10:59:20 -0400 Subject: [PATCH] Update --- src/DynamoCore/Search/NodeSearchModel.cs | 1 + src/DynamoCoreWpf/Controls/StartPage.xaml.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DynamoCore/Search/NodeSearchModel.cs b/src/DynamoCore/Search/NodeSearchModel.cs index 92149fddef5..a25e9ee3eea 100644 --- a/src/DynamoCore/Search/NodeSearchModel.cs +++ b/src/DynamoCore/Search/NodeSearchModel.cs @@ -282,6 +282,7 @@ internal IEnumerable Search(string search, LuceneSearchUtilit } } } + luceneSearchUtility.dirReader.Dispose(); return candidates; } return null; diff --git a/src/DynamoCoreWpf/Controls/StartPage.xaml.cs b/src/DynamoCoreWpf/Controls/StartPage.xaml.cs index ecdd683d23a..f9b7066b1e4 100644 --- a/src/DynamoCoreWpf/Controls/StartPage.xaml.cs +++ b/src/DynamoCoreWpf/Controls/StartPage.xaml.cs @@ -4,6 +4,7 @@ using System.Collections.Specialized; using System.Diagnostics; using System.IO; +using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; @@ -366,7 +367,7 @@ private void RefreshFileList(ObservableCollection files, IEnumerable filePaths) { files.Clear(); - foreach (var filePath in filePaths) + foreach (var filePath in filePaths.Where(x => x != null)) { try {