diff --git a/runtime/compiler/runtime/JITClientSession.cpp b/runtime/compiler/runtime/JITClientSession.cpp index 812762c295a..05ef0235c5f 100644 --- a/runtime/compiler/runtime/JITClientSession.cpp +++ b/runtime/compiler/runtime/JITClientSession.cpp @@ -896,8 +896,7 @@ ClientSessionData::getClassRecord(J9Class *clazz, JITServer::ServerStream *strea auto recv = stream->read(); uintptr_t offset = std::get<0>(recv); auto &name = std::get<1>(recv); - - if (offset) + if (!name.empty()) { OMR::CriticalSection cs(getROMMapMonitor()); auto it = getROMClassMap().find((J9Class *)clazz);