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);