Do not crash if a null filename is given
This commit is contained in:
parent
84b4798eaf
commit
23c7972f0d
@ -278,10 +278,8 @@ namespace UniversalEditor
|
||||
}
|
||||
public bool MatchesFile(string FileName, System.IO.Stream FileData)
|
||||
{
|
||||
if (FileName != null)
|
||||
{
|
||||
FileName = System.IO.Path.GetFileName(FileName);
|
||||
}
|
||||
if (FileName == null) return false;
|
||||
if (System.IO.File.Exists(FileName)) FileName = System.IO.Path.GetFileName(FileName);
|
||||
|
||||
switch (mvarHintComparison)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user