EA-32848 (assertions)

This commit is contained in:
Roman Shevchenko
2012-01-27 16:28:26 +04:00
parent 4cdb4e30c6
commit fb8488ac75
2 changed files with 5 additions and 4 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -108,6 +108,7 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
if (consoleComponent != null) {
controlBreakAction.registerCustomShortcutSet(controlBreakAction.getShortcutSet(), consoleComponent);
final ProcessHandler processHandler = executionResult.getProcessHandler();
assert processHandler != null : executionResult;
processHandler.addProcessListener(new ProcessAdapter() {
public void processTerminated(final ProcessEvent event) {
processHandler.removeProcessListener(this);