From cf39354085403a40cd7c2c672568995c81a5780d Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Thu, 5 Nov 2015 18:21:25 +0100 Subject: [PATCH] NPE on open .form --- .../impl/src/com/intellij/execution/ui/JrePathEditor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/execution/impl/src/com/intellij/execution/ui/JrePathEditor.java b/java/execution/impl/src/com/intellij/execution/ui/JrePathEditor.java index 3f27a4f350a1..5c854964c827 100644 --- a/java/execution/impl/src/com/intellij/execution/ui/JrePathEditor.java +++ b/java/execution/impl/src/com/intellij/execution/ui/JrePathEditor.java @@ -108,7 +108,9 @@ public class JrePathEditor extends JPanel implements PanelWithAnchor { comboBox.setRenderer(new ColoredListCellRendererWrapper() { @Override protected void doCustomize(JList list, JreComboBoxItem value, int index, boolean selected, boolean hasFocus) { - value.render(this, selected); + if (value != null) { + value.render(this, selected); + } } }); myComboboxEditor = new JreComboboxEditor(myComboBoxModel);