提交 fe7f407b 编写于 作者: J Joao Moreno

fix NPE

related to #7597
上级 3500c2dd
......@@ -51,6 +51,10 @@ export class RawGitService implements IRawGitService {
}
statusCount(): TPromise<number> {
if (!this.repo) {
return TPromise.as(0);
}
return this.status().then(r => r ? r.status.length : 0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册