Fix nullref exception showing query plan panel (#1516)

This commit is contained in:
Karl Burtram
2018-05-30 14:30:14 -07:00
committed by GitHub
parent 1a97e3de06
commit edc60e0ad1
3 changed files with 9 additions and 5 deletions

View File

@@ -48,9 +48,11 @@ export class QueryPlanComponent implements OnDestroy, OnInit {
public set planXml(val: string) {
this._planXml = val;
QP.showPlan(this._container.nativeElement, this._planXml, {
jsTooltips: false
});
if (this._planXml) {
QP.showPlan(this._container.nativeElement, this._planXml, {
jsTooltips: false
});
}
}
private _updateTheme(theme: ITheme, collector: ICssStyleCollector) {