From d6b8a53816f58f8d14050ab2dcdf1a4bb9eac630 Mon Sep 17 00:00:00 2001 From: Peter Gromov Date: Thu, 13 Aug 2009 16:36:13 +0400 Subject: [PATCH] don't leave unpainted areas in lookup --- .../codeInsight/lookup/impl/LookupCellRenderer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java b/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java index b044c3c6e87e..9b1706ab82d7 100644 --- a/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java +++ b/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java @@ -131,9 +131,9 @@ public class LookupCellRenderer implements ListCellRenderer { } } - private void setTailTextLabel(final Color background, Color foreground, final String text, final boolean bold, final boolean strikeout) { - if (StringUtil.isEmpty(text)) { - return; + private void setTailTextLabel(final Color background, Color foreground, String text, final boolean bold, final boolean strikeout) { + if (text == null) { + text = ""; } myTailComponent.setFont(bold ? BOLD_FONT : NORMAL_FONT);