Skip to content

Commit

Permalink
Coverity: Fix possibility of access to attribute of undefined
Browse files Browse the repository at this point in the history
Reviewed-By: Tomas Krizek <[email protected]>
  • Loading branch information
Pavel Vomacka authored and Martin Babinsky committed Jan 18, 2017
1 parent b82d285 commit a69c444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/ui/src/freeipa/widgets/APIBrowserWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a69c444

Please sign in to comment.