sometimes .desktop files make this happen

This commit is contained in:
Michael Becker 2019-12-20 07:36:41 -05:00
parent 07aaeb2d47
commit 81e0f09a33
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -199,6 +199,12 @@ namespace UniversalEditor.UserInterface
{
for (int i = 0; i < e.CommandLine.FileNames.Count; i++)
{
if (String.IsNullOrEmpty(e.CommandLine.FileNames[i]))
{
Console.WriteLine("ue: warning: ignoring empty file name passed to command line");
continue;
}
docs[i] = new Document(new FileAccessor(e.CommandLine.FileNames[i]));
}
}