From 02254596f51193481105e7ff20a7045d10cf5905 Mon Sep 17 00:00:00 2001 From: "zer0.k" Date: Wed, 20 Nov 2024 00:20:05 +0100 Subject: [PATCH] Ignore empty metadata --- src/kz/timer/kz_timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kz/timer/kz_timer.cpp b/src/kz/timer/kz_timer.cpp index 0e070ed3..f5cfd7e2 100644 --- a/src/kz/timer/kz_timer.cpp +++ b/src/kz/timer/kz_timer.cpp @@ -1081,6 +1081,10 @@ void KZTimerService::InsertPBToCache(f64 time, const KZCourse *course, PluginId overall ? pb.overall.pbTime = time : pb.pro.pbTime = time; KeyValues3 kv(KV3_TYPEEX_TABLE, KV3_SUBTYPE_UNSPECIFIED); CUtlString error = ""; + if (metadata.IsEmpty()) + { + return; + } LoadKV3FromJSON(&kv, &error, metadata.Get(), ""); if (!error.IsEmpty()) {