Skip to content

Commit

Permalink
Ignore empty metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0k-z committed Nov 19, 2024
1 parent 0175fe6 commit 0225459
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kz/timer/kz_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit 0225459

Please sign in to comment.