Coverity - null pointer dereference

Add check which protect from calling method of null.

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Pavel Vomacka authored and Petr Vobornik committed 2016-11-10 18:58:38 +01:00
1 parent aa8a904c4a
commit 2644c95548
1 file changed
+1 -1
@@ -264,7 +264,7 @@ widgets.APIBrowserWidget = declare([Stateful, Evented], {
this.list_w.select(item);
// set item
widget.set('item', item);
if (widget) widget.set('item', item);
this.set('current', {
item: item,
type: type,