diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index b9c87686cf..aa0d5e4d92 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -73,7 +73,7 @@ void Fiber::DestroyWorkFiber() { } void Fiber::DestroyThreadFiber() { - if (*impl->next_fiber_ptr) { + if (impl->next_fiber_ptr && *impl->next_fiber_ptr) { *impl->next_fiber_ptr = nullptr; } }