From 282430d31ce8c6b5dc0ba1bcde19758c45a4d628 Mon Sep 17 00:00:00 2001 From: nik Date: Mon, 5 Oct 2015 11:00:58 +0300 Subject: [PATCH] comment added --- .../impl/src/com/intellij/execution/ui/JrePathEditor.java | 1 + 1 file changed, 1 insertion(+) 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 72ed2d2854f9..c2625525774d 100644 --- a/java/execution/impl/src/com/intellij/execution/ui/JrePathEditor.java +++ b/java/execution/impl/src/com/intellij/execution/ui/JrePathEditor.java @@ -258,6 +258,7 @@ public class JrePathEditor extends JPanel implements PanelWithAnchor { @Override public void render(SimpleColoredComponent component, boolean selected) { component.append(DEFAULT_JRE_TEXT); + //may be null if JrePathEditor is added to a GUI Form where the default constructor is used and setDefaultJreSelector isn't called if (myDefaultJreSelector != null) { component.append(myDefaultJreSelector.getDescriptionString(), SimpleTextAttributes.GRAY_ATTRIBUTES); }