diff --git a/src/processor/processor_base.cpp b/src/processor/processor_base.cpp
index d3d025b7b43090a87f4abb2de6e4e86ffccfd6f6..1e8b098df1dd882ff16756c3f3345080637a43e0 100644
--- a/src/processor/processor_base.cpp
+++ b/src/processor/processor_base.cpp
@@ -33,8 +33,8 @@ bool ProcessorBase::permittedAuxFrame()
 
 void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
 {
-    WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": KF", _keyframe_ptr->id(), " callback received with ts = ", _keyframe_ptr->getTimeStamp());
     assert(_keyframe_ptr != nullptr && "keyFrameCallback with a nullptr frame");
+    WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": KF", _keyframe_ptr->id(), " callback received with ts = ", _keyframe_ptr->getTimeStamp());
 
     // buffering anyway
     buffer_pack_kf_.add(_keyframe_ptr, _time_tol_other);
@@ -47,8 +47,8 @@ void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _
 
 void ProcessorBase::captureCallback(CaptureBasePtr _capture_ptr)
 {
-    WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": Capture ", _capture_ptr->id(), " callback received with ts = ", _capture_ptr->getTimeStamp());
     assert(_capture_ptr != nullptr && "captureCallback with a nullptr capture");
+    WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": Capture ", _capture_ptr->id(), " callback received with ts = ", _capture_ptr->getTimeStamp());
 
     // if trigger, process directly without buffering
     if (triggerInCapture(_capture_ptr))