From a2525ff64518038eaa64b0d855154a984030f7f3 Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Mon, 25 Jul 2016 10:36:47 +0200 Subject: [PATCH] Coverity - null pointer exception Variable 'option' can be null and there will be error of reading property of null. Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 4769ca616..0ac3cf697 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -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); }