EA-27408 - NPE: ConsoleViewImpl$19.setSelected

This commit is contained in:
Denis Zhdanov
2011-05-04 12:21:27 +04:00
parent 1b491c6b19
commit cbcc0456ab
@@ -1586,7 +1586,7 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
super.setSelected(e, state);
final String placeholder = myCommandLineFolding.getPlaceholder(0);
if (state && placeholder == null) {
if (myEditor == null || (state && placeholder == null)) {
return;
}