hack to allow us to open file names passed on the commandline, which broke somehow

This commit is contained in:
Michael Becker 2019-09-23 03:38:38 -04:00
parent f06b776502
commit 4e31a99662
2 changed files with 11 additions and 2 deletions

View File

@ -608,7 +608,8 @@ namespace UniversalEditor.UserInterface
}
else
{
Console.Error.WriteLine("ue: accessor not found for path " + fileNames[i]);
Console.Error.WriteLine("ue: accessor not found for path " + fileNames[i] + "; assuming local file");
loadedDocuments.Add(new Document(new FileAccessor(fileNames[i])));
}
}
OpenWindow(loadedDocuments.ToArray());

View File

@ -267,7 +267,15 @@ namespace UniversalEditor.UserInterface
private void dckContainer_SelectionChanged(object sender, EventArgs e)
{
Editor editor = GetCurrentEditor ();
Editor editor = null;
try
{
editor = GetCurrentEditor();
}
catch (Exception ex)
{
}
if (editor == null) {
Console.WriteLine ("Editor is null");
} else {