Skip to content
Snippets Groups Projects

fix: correct to avoid NPE + add missing message

Closed Homada.Boumedane requested to merge hbo_fix_notifcation_service_missing_message into master
2 files
+ 3
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -240,7 +240,8 @@ public class NotificationService extends ResourceService<Notification> {
SolidifyEventPublisher.getPublisher().publishEvent(Objects.requireNonNull(emailMessage));
}
}
if (item.getNotificationType().getNotificationCategory().equals(NotificationCategory.INFO)) {
if (item.getNotificationType().getNotificationCategory() != null && item.getNotificationType().getNotificationCategory()
.equals(NotificationCategory.INFO)) {
item.setNotificationStatus(NotificationStatus.NON_APPLICABLE);
}
return super.save(item);
Loading