mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06: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:
parent
4af31c70c5
commit
cd74f78ed7
@ -221,7 +221,11 @@ IPA.search_facet = function(spec, no_init) {
|
|||||||
that.show_remove_dialog = function() {
|
that.show_remove_dialog = function() {
|
||||||
|
|
||||||
var dialog = that.create_remove_dialog();
|
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() {
|
that.find = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user