Coverity - null pointer exception

Variable 'option' can be null and there will be error of reading property 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 a68c95d116
commit a2525ff645
1 file changed
+1 -1
+1 -1
View File
@@ -2249,7 +2249,7 @@ IPA.option_widget_base = function(spec, that) {
var child_values = [];
var option = that.get_option(value);
if (option.widget) {
if (option && option.widget) {
child_values = option.widget.save();
values.push.apply(values, child_values);
}