diff --git a/src/server/JasmineGraphServer.cpp b/src/server/JasmineGraphServer.cpp index 311cf5181..ffed6248c 100644 --- a/src/server/JasmineGraphServer.cpp +++ b/src/server/JasmineGraphServer.cpp @@ -2631,6 +2631,11 @@ void JasmineGraphServer::addInstanceDetailsToPerformanceDB(std::string host, std } hostString = hostString.substr(0, hostString.length() - 1); + + if (hostString.length() == 0) { + return; + } + insertPlaceQuery = insertPlaceQuery + hostString; this->performanceSqlite.runInsert(insertPlaceQuery);