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 2016-07-29 10:13:21 +02:00 committed by Petr Vobornik
parent aa8a904c4a
commit 2644c95548

View File

@ -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,