From e4fbd301504c9b79f7943586c2aaa21b32d596d9 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 19 Apr 2013 17:03:08 +0400 Subject: [PATCH] tests fixed --- .../src/com/intellij/codeInsight/daemon/impl/HighlightInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfo.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfo.java index b3c5f5700cc8..6d118393d662 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfo.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfo.java @@ -119,7 +119,7 @@ public class HighlightInfo implements Segment { if (toolTip == null || description == null) return toolTip; String unescaped = StringUtil.unescapeXml(XmlStringUtil.stripHtml(toolTip)); - String encoded = StringUtil.replace(unescaped, description, DESCRIPTION_PLACEHOLDER); + String encoded = description.isEmpty() ? unescaped : StringUtil.replace(unescaped, description, DESCRIPTION_PLACEHOLDER); //noinspection StringEquality if (encoded == unescaped) { return toolTip;