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 <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 a2525ff645
commit d4ad0ca04c
1 file changed
+2
+2
View File
@@ -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 {