diff --git a/source/VersionHandlerImpl/src/VersionHandlerImpl.cs b/source/VersionHandlerImpl/src/VersionHandlerImpl.cs index 079fec24..587e2f5f 100644 --- a/source/VersionHandlerImpl/src/VersionHandlerImpl.cs +++ b/source/VersionHandlerImpl/src/VersionHandlerImpl.cs @@ -2350,9 +2350,13 @@ private static bool EnabledEditorDllsLoaded { var loadedAssemblyPaths = new HashSet(); foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { try { - var path = Path.GetFullPath(assembly.Location); - if (enabledEditorDlls.Contains(path)) { - loadedAssemblyPaths.Add(path); + if (assembly != null && !String.IsNullOrEmpty(assembly.Location)) + { + var path = Path.GetFullPath(assembly.Location); + if (enabledEditorDlls.Contains(path)) + { + loadedAssemblyPaths.Add(path); + } } } catch (NotSupportedException) { // Dynamic assemblies do not have a file location so ignore.