Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java
index d6a73d3d2..6f593fe1b 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java
@@ -447,8 +447,10 @@ public class IOConsolePartitioner
pendingSize = 0;
}
synchronized (partitions) {
- trimJob.setTrimOffset(document.getLength());
- trimJob.schedule();
+ if (document != null) {
+ trimJob.setTrimOffset(document.getLength());
+ trimJob.schedule();
+ }
}
}
@@ -803,7 +805,9 @@ public class IOConsolePartitioner
pendingPartitions.notifyAll();
}
synchronized (partitions) {
- applyStreamOutput(pendingCopy, size);
+ if (document != null) {
+ applyStreamOutput(pendingCopy, size);
+ }
}
checkFinished();
checkBufferSize();

Back to the top