From b3e2143275514a4cd8b1e24e06fc4bf404482bb3 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 5 Jul 2017 18:02:05 +0200 Subject: [PATCH] Fixes a 500 --- Yavsc/Controllers/Haircut/HairCutCommandController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yavsc/Controllers/Haircut/HairCutCommandController.cs b/Yavsc/Controllers/Haircut/HairCutCommandController.cs index 767261a0..61840510 100644 --- a/Yavsc/Controllers/Haircut/HairCutCommandController.cs +++ b/Yavsc/Controllers/Haircut/HairCutCommandController.cs @@ -439,7 +439,7 @@ Le client final: {clientFinal} if (pro.AcceptNotifications && pro.AcceptPublicContact) { - if (pro.Performer.Devices.Count > 0) { + if (pro.Performer.Devices?.Count > 0) { var regids = command.PerformerProfile.Performer .Devices.Select(d => d.GCMRegistrationId); grep = await _GCMSender.NotifyHairCutQueryAsync(_googleSettings,regids,yaev);