From cd74f78ed74f8898c492024d0901cef9778df067 Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Tue, 26 Jul 2016 12:03:28 +0200 Subject: [PATCH] Coverity - opens dialog which might not be created Check whether dialog object is created before opening it. Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/search.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() {