Skip to content

Commit b617d53

Browse files
committed
Fixed empty file causing exception
1 parent 8c90558 commit b617d53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Arma.Studio.UiEditor/UI/UiEditorDataContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ public void Load()
403403
// parse failed
404404
throw new Exception();
405405
}
406+
if (configBin.Count == 0)
407+
{
408+
// empty
409+
return;
410+
}
406411
var dialogConfig = configBin.Values.FirstOrDefault((it) =>
407412
{
408413
if (it.ContainsKey(dlg_idd) ||

0 commit comments

Comments
 (0)