diff --git a/src/mobi/hsz/idea/gitignore/daemon/MissingGitignoreNotificationProvider.java b/src/mobi/hsz/idea/gitignore/daemon/MissingGitignoreNotificationProvider.java index 7ca6be68..aa6921b9 100644 --- a/src/mobi/hsz/idea/gitignore/daemon/MissingGitignoreNotificationProvider.java +++ b/src/mobi/hsz/idea/gitignore/daemon/MissingGitignoreNotificationProvider.java @@ -54,7 +54,6 @@ public EditorNotificationPanel createNotificationPanel(VirtualFile file, FileEdi private EditorNotificationPanel createPanel(@NotNull final Project project) { final EditorNotificationPanel panel = new EditorNotificationPanel(); panel.setText("Missing .gitignore file in GIT project"); - panel.icon(Icons.FILE); panel.createActionLabel("Create .gitignore", new Runnable() { @Override public void run() { @@ -73,6 +72,11 @@ public void run() { notifications.updateAllNotifications(); } }); + + try { // ignore if older SDK does not support panel icon + panel.icon(Icons.FILE); + } catch (NoSuchMethodError ignored) {} + return panel; } }