Add support for partially loading invalid profiles (#533)
* Add support for partially loading invalid profiles * Return early in exception
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user