Add support for partially loading invalid profiles (#533)

* Add support for partially loading invalid profiles

* Return early in exception
This commit is contained in:
Jesse
2025-08-05 16:25:47 +02:00
committed by GitHub
parent 460d359a0d
commit c7e40deb90
11 changed files with 429 additions and 265 deletions
@@ -86,6 +86,12 @@ public class InsuranceController(
var insuranceTime = time ?? timeUtil.GetTimeStamp();
var profileInsuranceDetails = saveServer.GetProfile(sessionId).InsuranceList;
if (profileInsuranceDetails is null)
{
return [];
}
if (profileInsuranceDetails.Count > 0)
{
if (logger.IsLogEnabled(LogLevel.Debug))