diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2018-02-26 21:33:40 +0300 |
---|---|---|
committer | Lluis Sanchez <llsan@microsoft.com> | 2018-02-26 21:33:40 +0300 |
commit | 3b8658c0c4e97e92647d66bc7efdca019bcc818a (patch) | |
tree | c960cf273afaf807ccfa0ff9a19b15cc7806a9eb /Mono.Addins/Mono.Addins.Database | |
parent | 2a6d1cedbe3d909f2473781246fd8e5093ce92fe (diff) |
Fix exception when trying to scan folder that doesn't exist
Diffstat (limited to 'Mono.Addins/Mono.Addins.Database')
-rw-r--r-- | Mono.Addins/Mono.Addins.Database/AddinFolderVisitor.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mono.Addins/Mono.Addins.Database/AddinFolderVisitor.cs b/Mono.Addins/Mono.Addins.Database/AddinFolderVisitor.cs index 0f9f4a2..37c64d6 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinFolderVisitor.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinFolderVisitor.cs @@ -60,6 +60,9 @@ namespace Mono.Addins.Database protected virtual void OnVisitFolder (IProgressStatus monitor, string path, string domain, bool recursive) { + if (!FileSystem.DirectoryExists (path)) + return; + var files = FileSystem.GetFiles (path); // First of all scan .addins files, since they can contain exclude paths. |