Fixes a 500

This commit is contained in:
Paul Schneider 2017-07-05 18:02:05 +02:00
commit b3e2143275

View file

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