From f891074256a3ff788d44dc99b2160d6c4a6cf289 Mon Sep 17 00:00:00 2001 From: Julian Robledo Mejia Date: Thu, 21 Mar 2024 14:31:37 +0100 Subject: [PATCH] fixed null ptr value --- lib/scheduler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scheduler.cc b/lib/scheduler.cc index e4de650b..2beac8a4 100644 --- a/lib/scheduler.cc +++ b/lib/scheduler.cc @@ -461,7 +461,7 @@ void Scheduler::schedule_sync(BaseAction* action, const Tag& tag) { log_.debug() << "Schedule action " << action->fqn() << (action->is_logical() ? " synchronously " : " asynchronously ") << " with tag " << tag; reactor_assert(logical_time_ < tag); - if (action->container() != 0) { + if (action->container() != nullptr) { tracepoint(reactor_cpp, schedule_action, action->container()->fqn(), action->name(), tag); } else { tracepoint(reactor_cpp, schedule_action, action->environment()->name(), action->name(), tag);