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:
Pavel Vomacka 2016-07-26 12:03:28 +02:00 committed by Petr Vobornik
parent 4af31c70c5
commit cd74f78ed7

View File

@ -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() {