diff --git a/src/lib/api/core/ApiClientInterop.cpp b/src/lib/api/core/ApiClientInterop.cpp index 2526bcf1a..e905114a2 100644 --- a/src/lib/api/core/ApiClientInterop.cpp +++ b/src/lib/api/core/ApiClientInterop.cpp @@ -173,9 +173,10 @@ CAPI bool api_client_is_on_qb_thread(ApiClient* pclient) { void safe_call_subscription_callback(raw_subscription_callback cb, EventType type, const std::vector& updates, void* extra) { safe_call_fn([&]() { - if (updates.size() > 0) { + if (updates.size() > 0) cb(type, &updates[0], updates.size(), extra); - } + else + cb(type, nullptr, updates.size(), extra); }); }