提交 a5f14a9c 编写于 作者: I isidor

fix npe with more tmp ugly code

上级 51230a2d
......@@ -181,9 +181,11 @@ export class ActivitybarPart extends Part implements IActivityService {
this.togglePanelAction.setBadge(null);
} else {
this.togglePanelAction.setBadge(this.panelActions[0].getBadge());
if (this.panelActions[0].getBadge()) {
this.panelActions[0].setBadge(null);
}
}
}
private toAction(composite: CompositeDescriptor<Viewlet | Panel>): ActivityAction {
const activeViewlet = this.viewletService.getActiveViewlet();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册