From ea1af3246aebf2399c03a021711a1f710079d557 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 1 Sep 2015 11:39:21 +0200 Subject: [PATCH] Bug #3876: Initialize error message --- src/dm/DispatchManagerActions.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dm/DispatchManagerActions.cc b/src/dm/DispatchManagerActions.cc index 019c3a639a..53efbc1994 100644 --- a/src/dm/DispatchManagerActions.cc +++ b/src/dm/DispatchManagerActions.cc @@ -795,13 +795,17 @@ int DispatchManager::finalize( if(host_id != -1) { host = hpool->get(host_id,true); + if ( host == 0 ) { oss << "Error getting host " << host_id; - NebulaLog::log("DiM",Log::ERROR,oss); + error_str = oss.str(); + return -1; } + is_public_host = host->is_public_cloud(); + host->unlock(); }