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,7 +40,9 @@ export class CorTabPanelComponent implements OnDestroy {
}
public ngOnDestroy(): void {
this.currentTabHandler.dispose();
if (this.currentTabHandler) {
this.currentTabHandler.dispose();
}
}
public tabClicked(tab: CorTabComponent): void {