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:
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,
|
||||
|
||||
Reference in new issue
Block a user