Coverity - null pointer dereference
The 'obj' variable could be null, so there could be error when it is used. A new check that 'obj' is not false is added. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
1 parent
d94a2aa185
commit
cad9f9b682
1 file changed
+3
-3
@@ -427,11 +427,11 @@ widgets.browser_widgets.CommandDetailWidget = declare([base], {
|
||||
if (i>0) {
|
||||
out_params_cnt.append(', ');
|
||||
}
|
||||
if (!param) {
|
||||
out_params_cnt.append(param_name);
|
||||
} else {
|
||||
if (param && obj) {
|
||||
var link = this.render_param_link(obj.name, param_name);
|
||||
out_params_cnt.append(link);
|
||||
} else {
|
||||
out_params_cnt.append(param_name);
|
||||
}
|
||||
}
|
||||
out_params_cnt.appendTo(this.el);
|
||||
|
||||
Reference in new issue
Block a user