diff --git a/Modules/Devices/src/Devices.Infrastructure/PushNotifications/NotificationTexts/PushNotificationTextProvider.cs b/Modules/Devices/src/Devices.Infrastructure/PushNotifications/NotificationTexts/PushNotificationTextProvider.cs index a1cd69fb1a..b2ab915f23 100644 --- a/Modules/Devices/src/Devices.Infrastructure/PushNotifications/NotificationTexts/PushNotificationTextProvider.cs +++ b/Modules/Devices/src/Devices.Infrastructure/PushNotifications/NotificationTexts/PushNotificationTextProvider.cs @@ -42,10 +42,10 @@ private NotificationText GetNotificationTextFromResourceManager(Type pushNotific var title = _resourceManager.GetString(titleKey, culture); var body = _resourceManager.GetString(bodyKey, culture); - if (title.IsNullOrEmpty()) + if (title == null) throw new MissingPushNotificationTextException($"Title for notification type '{pushNotificationTypeName}' not found."); - if (body.IsNullOrEmpty()) + if (body == null) throw new MissingPushNotificationTextException($"Body for notification type '{pushNotificationTypeName}' not found."); return new NotificationText(title, body);