From d4ad0ca04c0ae445c784787a675ac84d2cbfd766 Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Mon, 25 Jul 2016 10:43:00 +0200 Subject: [PATCH] Coverity - null pointer exception Variable 'row' could be null in some cases. And set css to variable which is pointing to null causes error. Therefore there is new check. Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/widget.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 0ac3cf697..e3146aeaa 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -5767,6 +5767,8 @@ exp.fluid_layout = IPA.fluid_layout = function(spec) { that.on_visible_change = function(event) { var row = that._get_row(event); + if (!row) return; + if (event.visible) { row.css('display', ''); } else {