提交 4f424428 编写于 作者: B Benjamin Pasero

fix NPE when updating tabs

上级 c633c16c
......@@ -286,6 +286,10 @@ export class TabsTitleControl extends TitleControl {
// Tab label and styles
editorsOfGroup.forEach((editor, index) => {
const tabContainer = this.tabsContainer.children[index] as HTMLElement;
if (!tabContainer) {
return; // could be a race condition between updating tabs and creating tabs
}
const isPinned = group.isPinned(index);
const isTabActive = group.isActive(editor);
const isDirty = editor.isDirty();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册