Coverity: Fix possibility of access to attribute of undefined

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Pavel Vomacka 2017-01-11 17:13:19 +01:00 committed by Martin Babinsky
parent b82d285a4a
commit a69c4448c5

View File

@ -253,7 +253,7 @@ widgets.APIBrowserWidget = declare([Stateful, Evented], {
// switch widget
if (widget && !widget.el) widget.render();
if (this.current_details_w !== widget) {
if (widget && this.current_details_w !== widget) {
this.details_el.empty();
this.details_el.append(widget.el);
}