From 631f2c51074b59eabe886ab358a67c2b8fe18939 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 16 Nov 2024 16:31:24 -0600 Subject: [PATCH] Fix exception that is thrown when using the type editor. --- Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs b/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs index a26fe9924..311767caf 100644 --- a/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs +++ b/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs @@ -293,7 +293,7 @@ namespace FlaxEditor.Modules.SourceCodeEditing var assemblyPath = Utils.GetAssemblyLocation(assembly); var assemblyName = assembly.GetName().Name; var xmlFilePath = Path.ChangeExtension(assemblyPath, ".xml"); - if (!File.Exists(assemblyPath)) + if (!File.Exists(assemblyPath) && !string.IsNullOrEmpty(assemblyPath)) { var uri = new UriBuilder(assemblyPath); var path = Uri.UnescapeDataString(uri.Path);