Fix NPE in cor tab panel
This commit is contained in:
parent
aa53dc0f66
commit
3d1197c6af
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue