Fix NPE in cor tab panel

This commit is contained in:
Joseph Schorr 2017-05-05 16:31:04 -04:00
parent aa53dc0f66
commit 3d1197c6af

View file

@ -40,8 +40,10 @@ export class CorTabPanelComponent implements OnDestroy {
} }
public ngOnDestroy(): void { public ngOnDestroy(): void {
if (this.currentTabHandler) {
this.currentTabHandler.dispose(); this.currentTabHandler.dispose();
} }
}
public tabClicked(tab: CorTabComponent): void { public tabClicked(tab: CorTabComponent): void {
this.setActiveTab(tab); this.setActiveTab(tab);