Don't show message if there were no messages

Otherwise "Notification should have content" error is logged.
This commit is contained in:
Nikolay Krasko
2016-02-11 16:05:18 +03:00
parent e1d12af2fd
commit ae36e9c4c4
@@ -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)
}