X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FGraphSession.java;h=4ba3722fcbba05d42be25404317872fe8947deb7;hp=58917ae747c7c1fad57995288e745d6b14b7b83a;hb=0915910;hpb=55ca14c4198659b908aeffc8d16e240b35a75e66 diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/GraphSession.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/GraphSession.java index 58917ae74..4ba3722fc 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/GraphSession.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/GraphSession.java @@ -518,7 +518,7 @@ public abstract class GraphSession { @Override public int read() throws IOException { - if(left <= 0) throw new IllegalStateException(); + if(left <= 0) return -1; if(offset == _s.bytes.length) { short slen = (short)Math.min(left, IMAX);