X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.acorn%2Fsrc%2Forg%2Fsimantics%2Facorn%2Finternal%2FClusterSupport2.java;h=20cd6f462da5865109b4dda0ee25278b1f4633e6;hp=b1b1e8365f22bd8da329284a344639add33093cd;hb=fc38c8c23e78b366b534e7230b67d0dd683cba66;hpb=27d90ffb0fb9b2ed86be12c5444ad2a71a8c81d9 diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterSupport2.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterSupport2.java index b1b1e8365..20cd6f462 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterSupport2.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterSupport2.java @@ -258,8 +258,7 @@ public class ClusterSupport2 implements ClusterSupport, IClusterTable { @Override public int read() throws IOException { - if(left <= 0) - throw new IOException("left <= 0 for " + _s); + if(left <= 0) return -1; if(offset == _s.bytes.length) { short slen = (short)Math.min(left, IMAX);