提交 0a4bc8d0 编写于 作者: I isidor

explorerViewer: null guard when getting children

上级 7693169c
......@@ -99,9 +99,12 @@ export class FileDataSource implements IDataSource {
const modelDirStat = ExplorerItem.create(dirStat, stat.root);
// Add children to folder
modelDirStat.getChildrenArray().forEach(child => {
stat.addChild(child);
});
const children = modelDirStat.getChildrenArray();
if (children) {
children.forEach(child => {
stat.addChild(child);
});
}
stat.isDirectoryResolved = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册