From 4a40eabbde56b2ec1db253d071113c064e5025fb Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 16 Mar 2016 16:22:50 +0100 Subject: [PATCH] change != null to isEmpty --- .../notification/impl/actions/NotificationTestAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java b/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java index 60c166fae86c..d36c2c30ded6 100644 --- a/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java +++ b/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -204,7 +204,7 @@ public class NotificationTestAction extends AnAction implements DumbAware { public Notification getNotification() { if (myNotification == null) { Icon icon = null; - if (myGroupId != null) { + if (!StringUtil.isEmpty(myGroupId)) { icon = IconLoader.findIcon(myGroupId); } if ("!!!St!!!".equals(myTitle)) {