提交 a7ddb004 编写于 作者: T tanghai

修复加载空树异常的bug

上级 1b6c9882
......@@ -189,6 +189,10 @@ namespace Tree
byte[] bytes = File.ReadAllBytes(filePath);
var treeNodeDataArray = ProtobufHelper.FromBytes<TreeNodeDataArray>(bytes);
treeNodeDataArray.Init();
if (treeNodeDataArray.TreeNodeDatas.Count == 0)
{
return;
}
RecursionLoad(treeNodeDataArray, treeNodeDataArray.TreeNodeDatas[0], null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册