check for null on conditionCounters

This commit is contained in:
CWXDEV 2023-12-28 11:30:36 +00:00
parent f3fee2bc39
commit d49a9da751

View File

@ -316,7 +316,7 @@ export class InraidController
*/ */
protected profileHasConditionCounters(profile: IPmcData): boolean protected profileHasConditionCounters(profile: IPmcData): boolean
{ {
if (!profile.ConditionCounters.Counters) if (!profile.ConditionCounters?.Counters)
{ {
return false; return false;
} }