Error on toolwindow notification with actions: they won't be shown.

Related: WI-39043 "No authentication data provided. Set it up here" link missing
This commit is contained in:
Shaverdova Elena
2017-12-11 19:28:52 +01:00
parent 6692a96182
commit bd9abdf11a
@@ -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)) {