mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Coverity - accessing attribute of variable which can point to null
Added check whether variable is pointing to null or not. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
cd74f78ed7
commit
aa8a904c4a
@ -4939,7 +4939,7 @@ IPA.combobox_widget = function(spec) {
|
||||
var value = that.list.val();
|
||||
var option = $('option[value="'+value+'"]', that.list);
|
||||
var next = option.next();
|
||||
if (!next.length) return;
|
||||
if (!next || !next.length) return;
|
||||
that.select(next.val());
|
||||
};
|
||||
|
||||
@ -4947,7 +4947,7 @@ IPA.combobox_widget = function(spec) {
|
||||
var value = that.list.val();
|
||||
var option = $('option[value="'+value+'"]', that.list);
|
||||
var prev = option.prev();
|
||||
if (!prev.length) return;
|
||||
if (!prev || !prev.length) return;
|
||||
that.select(prev.val());
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user