提交 d4a05033 编写于 作者: B Benjamin Pasero

fix npe in history saving

上级 93906af3
......@@ -500,6 +500,10 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
}
private save(): void {
if (!this.history) {
return; // nothing to save because history was not used
}
let entries: ISerializedEditorInput[] = this.history.map((input: EditorInput) => {
let factory = this.registry.getEditorInputFactory(input.getTypeId());
if (factory) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册