Fixed nullref issue when healing post-raid

This commit is contained in:
Chomp
2025-07-16 10:43:17 +01:00
parent e4569395c2
commit e9f6a402f7
2 changed files with 3 additions and 3 deletions
@@ -293,7 +293,7 @@ public class HealthController(
TransactionId = Traders.THERAPIST,
SchemeItems = healthTreatmentRequest.Items,
Type = "",
ItemId = "",
ItemId = MongoId.Empty(),
Count = 0,
SchemeId = 0,
};
@@ -320,7 +320,7 @@ public class HealthController(
}
// Check for effects to remove
if (partRequest.Effects.Count > 0)
if (partRequest.Effects?.Count > 0)
{
// Found some, loop over them and remove from pmc profile
foreach (var effect in partRequest.Effects)
@@ -78,5 +78,5 @@ public record BodyPartEffects
/// <summary>
/// Effects in array to be removed
/// </summary>
public List<string> Effects { get; set; }
public List<string>? Effects { get; set; }
}