Skip to content

Commit 50cbec6

Browse files
committed
fix: java.lang.NullPointerException: Cannot invoke "com.intellij.notification.NotificationGroup.createNotification(String, String, com.intellij.notification.NotificationType)" because "notificationGroup" is null
1 parent ed4c48f commit 50cbec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public void run(@NotNull ProgressIndicator progressIndicator) {
6666
public void runActivity(@NotNull Project project) {
6767
doAsyncProjectMaintenance(project);
6868

69-
if (CsvEditorSettings.getInstance().checkCurrentPluginVersion(getVersion())) {
69+
NotificationGroup notificationGroup = NotificationGroupManager.getInstance().getNotificationGroup("net.seesharpsoft.intellij.plugins.csv");
70+
if (notificationGroup == null || CsvEditorSettings.getInstance().checkCurrentPluginVersion(getVersion())) {
7071
return;
7172
}
7273

73-
NotificationGroup notificationGroup = NotificationGroupManager.getInstance().getNotificationGroup("net.seesharpsoft.intellij.plugins.csv");
7474
Notification notification = notificationGroup.createNotification(
7575
"CSV Editor " + getVersion() + " - Change Notes",
7676
getChangeNotes() +

0 commit comments

Comments
 (0)