don't crash if we get passed a NULL filename
This commit is contained in:
parent
cdd181bf70
commit
033ab67b5b
@ -227,6 +227,7 @@ namespace UniversalEditor.ObjectModels.FileSystem
|
||||
/// <returns></returns>
|
||||
public File AddFile(string name, byte[] fileData = null)
|
||||
{
|
||||
if (name == null) name = String.Empty;
|
||||
string[] path = name.Split(mvarPathSeparators, StringSplitOptions.None);
|
||||
Folder parent = null;
|
||||
for (int i = 0; i < path.Length - 1; i++)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user