diff options
| author | Pavel Vomacka <pvomacka@redhat.com> | 2016-07-26 12:03:28 +0200 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2016-11-10 18:58:38 +0100 |
| commit | cd74f78ed74f8898c492024d0901cef9778df067 (patch) | |
| tree | db00dd0faa6d0c26ada18ae6bb41f62a4a2b3853 /install/ui/src/freeipa | |
| parent | 4af31c70c57fc223920b71fedfb40d1de27622b2 (diff) | |
| download | freeipa-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/freeipa')
| -rw-r--r-- | install/ui/src/freeipa/search.js | 6 |
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() { |
