From d4ad0ca04c0ae445c784787a675ac84d2cbfd766 Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Nov 10 2016 17:58:38 +0000 Subject: 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 --- diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 0ac3cf6..e3146ae 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 {