From 367b37d027f011de8654657bccecb173a663a94c Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 12 Aug 2014 19:13:10 +0400 Subject: [PATCH] ui: NPE in Show Usages renderer --- .../com/intellij/find/actions/ShowUsagesTableCellRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesTableCellRenderer.java b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesTableCellRenderer.java index d9848fdec4b0..c4445c4ab5d2 100644 --- a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesTableCellRenderer.java +++ b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesTableCellRenderer.java @@ -77,7 +77,7 @@ class ShowUsagesTableCellRenderer implements TableCellRenderer { textChunks.setBorder(null); if (usage == null || usageNode instanceof ShowUsagesAction.StringNode) { - textChunks.append(value.toString(), SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); + textChunks.append(value != null ? value.toString() : "", SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); return textComponentSpanningWholeRow(textChunks, panelBackground, panelForeground, column, list, row); } if (usage == ShowUsagesAction.MORE_USAGES_SEPARATOR) {