Added nullguard to showQuestItemHandoverMatchError()

This commit is contained in:
Dev 2024-07-21 00:14:33 +01:00
parent ed3e16a94f
commit 014826e683

View File

@ -904,7 +904,7 @@ export class QuestController
{
const errorMessage = this.localisationService.getText("quest-handover_wrong_item", {
questId: handoverQuestRequest.qid,
handedInTpl: itemHandedOver._tpl,
handedInTpl: itemHandedOver?._tpl ?? "UNKNOWN",
requiredTpl: handoverRequirements.target[0],
});
this.logger.error(errorMessage);