From bd9abdf11a838182415c54d5a17fd1635fe9babc Mon Sep 17 00:00:00 2001 From: Shaverdova Elena Date: Mon, 11 Dec 2017 19:17:19 +0100 Subject: [PATCH] Error on toolwindow notification with actions: they won't be shown. Related: WI-39043 "No authentication data provided. Set it up here" link missing --- .../intellij/notification/impl/NotificationsManagerImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/notification/impl/NotificationsManagerImpl.java b/platform/platform-impl/src/com/intellij/notification/impl/NotificationsManagerImpl.java index be9bcdef56a7..8a8d13744ea3 100644 --- a/platform/platform-impl/src/com/intellij/notification/impl/NotificationsManagerImpl.java +++ b/platform/platform-impl/src/com/intellij/notification/impl/NotificationsManagerImpl.java @@ -197,6 +197,11 @@ public class NotificationsManagerImpl extends NotificationsManager { } }; assert toolWindowId != null; + assert notification.getActions().isEmpty() : "Actions are not shown for toolwindow notifications. " + + "Toolwindow id " + toolWindowId + + ", group id \'" + notification.getGroupId() + "\"" + + ", title \'" + notification.getTitle() + "\"" + + ", content \'" + notification.getContent() + "\""; String msg = notification.getTitle(); if (StringUtil.isNotEmpty(notification.getContent())) { if (StringUtil.isNotEmpty(msg)) {