From ae36e9c4c4c2119ced74062e4952c6c8587e8279 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 11 Feb 2016 16:05:18 +0300 Subject: [PATCH] Don't show message if there were no messages Otherwise "Notification should have content" error is logged. --- .../kotlin/idea/configuration/NotificationMessageCollector.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/NotificationMessageCollector.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/NotificationMessageCollector.kt index 2e65ab2f475..5e6a451cf93 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/NotificationMessageCollector.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/NotificationMessageCollector.kt @@ -33,6 +33,7 @@ open class NotificationMessageCollector(private val project: Project, } fun showNotification() { + if (messages.isEmpty()) return Notifications.Bus.notify(Notification(groupDisplayId, title, resultMessage, NotificationType.INFORMATION), project) }