EA-30429 - IAE: SpeedSearchUtil.appendFragmentsForSpeedSearch
authorAlexey Pegov <alexey.pegov@jetbrains.com>
Wed, 30 Nov 2011 14:05:55 +0000 (18:05 +0400)
committerAlexey Pegov <alexey.pegov@jetbrains.com>
Wed, 30 Nov 2011 14:05:55 +0000 (18:05 +0400)
platform/lang-impl/src/com/intellij/ide/commander/ColoredCommanderRenderer.java

index 1b1ed492154c704f04afbd2555125bd56d188ea0..1f55e54e153c3fd6c8b05c82a4844e5b30ed08e2 100644 (file)
@@ -93,7 +93,10 @@ final class ColoredCommanderRenderer extends ColoredListCellRenderer {
     final String text = value.toString();
 
     if (myCommanderPanel.isEnableSearchHighlighting()) {
-      SpeedSearchUtil.appendFragmentsForSpeedSearch(myCommanderPanel.getList(), text, attributes, selected, this);
+      JList list1 = myCommanderPanel.getList();
+      if (list1 != null) {
+        SpeedSearchUtil.appendFragmentsForSpeedSearch(list1, text, attributes, selected, this);
+      }
     }
     else {
       append(text != null ? text : "", attributes);