Skip to content

Commit c97806a

Browse files
Check if notification group is null
1 parent 0b97e87 commit c97806a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ui/jetbrains/src/main/java/com/albertoventurini/graphdbplugin/jetbrains/component/updater/PluginUpdateActivity.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ private void showNotification(@NotNull final Project project, String currentVers
4343
final NotificationGroup group = NotificationGroupManager.getInstance()
4444
.getNotificationGroup("graphdbplugin.notifications.update");
4545

46-
final Notification notification = group.createNotification(
47-
GraphBundle.message("updater.title", currentVersion),
48-
GraphBundle.message("updater.notification"),
49-
NotificationType.INFORMATION
50-
);
51-
52-
Notifications.Bus.notify(notification, project);
46+
if (group != null) {
47+
final Notification notification = group.createNotification(
48+
GraphBundle.message("updater.title", currentVersion),
49+
GraphBundle.message("updater.notification"),
50+
NotificationType.INFORMATION
51+
);
52+
53+
Notifications.Bus.notify(notification, project);
54+
}
5355
}
5456
}

0 commit comments

Comments
 (0)