Skip to content
Snippets Groups Projects
Commit d2d0598d authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

fix: notification

refactor code to avoid NPE + add missing message.
parent 9e674b74
Branches
Tags
No related merge requests found
......@@ -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);
......
......@@ -464,6 +464,7 @@ notification.status.created=Creation
notification.status.processed=Processed
notification.status.pending=Pending
notification.status.refused=Refused
notification.status.approved=Approved
###########
# History #
###########
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment