diff --git a/libraries/shared/src/Profile.cpp b/libraries/shared/src/Profile.cpp index 1ad7b0785b..420b4ee54a 100644 --- a/libraries/shared/src/Profile.cpp +++ b/libraries/shared/src/Profile.cpp @@ -39,6 +39,10 @@ Q_LOGGING_CATEGORY(trace_baker, "trace.baker") #endif static bool tracingEnabled() { + if (!DependencyManager::isSet()) { + return false; + } + // Cheers, love! The cavalry's here! auto tracer = DependencyManager::get(); return (tracer && tracer->isEnabled());