Skip to content
Snippets Groups Projects
Commit b3d17a5b authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Emit an error if currentRuntime is not set in printLastRuntimeStats

parent 8860bd1d
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,12 @@ void Runtime::printStats() {
}
void Runtime::printLastRuntimeStats() {
assert(currentRuntime);
std::lock_guard<std::mutex> lock(currentRuntimeMutex);
if (currentRuntime == nullptr) {
LOGE("Could not print current runtime stats");
return;
}
currentRuntime->printStats();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment