From 014826e683d585894b8a628645a59caf0ae36d11 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 21 Jul 2024 00:14:33 +0100 Subject: [PATCH] Added nullguard to `showQuestItemHandoverMatchError()` --- project/src/controllers/QuestController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/QuestController.ts b/project/src/controllers/QuestController.ts index 9d96d902..be25dc6d 100644 --- a/project/src/controllers/QuestController.ts +++ b/project/src/controllers/QuestController.ts @@ -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);