diff --git a/platform/lang-impl/src/com/intellij/framework/detection/impl/FrameworkDetectionManager.java b/platform/lang-impl/src/com/intellij/framework/detection/impl/FrameworkDetectionManager.java index cbff2f5b1553..55e3cc5eac28 100644 --- a/platform/lang-impl/src/com/intellij/framework/detection/impl/FrameworkDetectionManager.java +++ b/platform/lang-impl/src/com/intellij/framework/detection/impl/FrameworkDetectionManager.java @@ -145,17 +145,19 @@ public final class FrameworkDetectionManager implements FrameworkDetectionIndexL myDetectorsToProcess.clear(); } - String names = StringUtil.join(frameworkNames, ", "); - String text = ProjectBundle.message("framework.detected.info.text", names, frameworkNames.size()); - NotificationGroupManager.getInstance().getNotificationGroup("Framework Detection") - .createNotification(ProjectBundle.message("notification.title.frameworks.detected"), text, NotificationType.INFORMATION) - .addAction(new NotificationAction(IdeBundle.messagePointer("action.Anonymous.text.configure")) { - @Override - public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification notification) { - showSetupFrameworksDialog(notification); - } - }) - .notify(myProject); + if (!frameworkNames.isEmpty()) { + String names = StringUtil.join(frameworkNames, ", "); + String text = ProjectBundle.message("framework.detected.info.text", names, frameworkNames.size()); + NotificationGroupManager.getInstance().getNotificationGroup("Framework Detection") + .createNotification(ProjectBundle.message("notification.title.frameworks.detected"), text, NotificationType.INFORMATION) + .addAction(new NotificationAction(IdeBundle.messagePointer("action.Anonymous.text.configure")) { + @Override + public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification notification) { + showSetupFrameworksDialog(notification); + } + }) + .notify(myProject); + } } private void showSetupFrameworksDialog(Notification notification) {