summaryrefslogtreecommitdiffstats
path: root/install/ui/src
diff options
context:
space:
mode:
authorPavel Vomacka <pvomacka@redhat.com>2016-07-26 12:03:28 +0200
committerPetr Vobornik <pvoborni@redhat.com>2016-11-10 18:58:38 +0100
commitcd74f78ed74f8898c492024d0901cef9778df067 (patch)
treedb00dd0faa6d0c26ada18ae6bb41f62a4a2b3853 /install/ui/src
parent4af31c70c57fc223920b71fedfb40d1de27622b2 (diff)
downloadfreeipa-cd74f78ed74f8898c492024d0901cef9778df067.tar.gz
freeipa-cd74f78ed74f8898c492024d0901cef9778df067.tar.xz
freeipa-cd74f78ed74f8898c492024d0901cef9778df067.zip
Coverity - opens dialog which might not be created
Check whether dialog object is created before opening it. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'install/ui/src')
-rw-r--r--install/ui/src/freeipa/search.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js
index 25f21e70d..6820f54cc 100644
--- a/install/ui/src/freeipa/search.js
+++ b/install/ui/src/freeipa/search.js
@@ -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() {