Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Whiting2020-09-07 10:34:20 +0000
committerLars Vogel2020-09-15 08:13:32 +0000
commit46ccfcd6080964a9923a854609a750325f2342ce (patch)
treeededb9fb9626eca2e7dc1c1283b3d5735be03f81
parent9f468924ccfd9b6a08bfd408a035aaea88cd711e (diff)
downloadeclipse.platform.resources-46ccfcd6080964a9923a854609a750325f2342ce.tar.gz
eclipse.platform.resources-46ccfcd6080964a9923a854609a750325f2342ce.tar.xz
eclipse.platform.resources-46ccfcd6080964a9923a854609a750325f2342ce.zip
-rw-r--r--bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/SafeChunkyOutputStream.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/SafeChunkyOutputStream.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/SafeChunkyOutputStream.java
index d53c3c2bc..963a88feb 100644
--- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/SafeChunkyOutputStream.java
+++ b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/SafeChunkyOutputStream.java
@@ -94,4 +94,11 @@ public class SafeChunkyOutputStream extends FilterOutputStream {
open();
super.write(b);
}
+
+ @Override
+ public void write(byte b[], int off, int len) throws IOException {
+ if (!isOpen)
+ open();
+ out.write(b, off, len);
+ }
}

Back to the top