mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-13 06:25:00 -05:00
Coverity - opens dialog which might not be created
Check whether dialog object is created before opening it. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
committed by
Petr Vobornik
parent
4af31c70c5
commit
cd74f78ed7
@@ -221,7 +221,11 @@ IPA.search_facet = function(spec, no_init) {
|
||||
that.show_remove_dialog = function() {
|
||||
|
||||
var dialog = that.create_remove_dialog();
|
||||
dialog.open();
|
||||
if (dialog) {
|
||||
dialog.open();
|
||||
} else {
|
||||
window.console.log("Remove dialog was not created properly.");
|
||||
}
|
||||
};
|
||||
|
||||
that.find = function() {
|
||||
|
||||
Reference in New Issue
Block a user