From 859f337648bfb6b851cbc2dfa3f25428272821e7 Mon Sep 17 00:00:00 2001 From: RudiThoeni Date: Tue, 3 Dec 2024 09:27:30 +0100 Subject: [PATCH] fix guestcard assignment null reference --- OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs b/OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs index 9cd1029b..02143cbc 100644 --- a/OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs +++ b/OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs @@ -130,6 +130,9 @@ private static async Task AssignGuestcardDataFromNewLtsApi(AccommodationV2 accom if(accommodation.TagIds == null) accommodation.TagIds = new HashSet(); + if (accommodation.SmgTags == null) + accommodation.SmgTags = new List(); + //IF guestcard active Add Tag "guestcard" if (guestcardactive == null || guestcardactive == false) {