]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/GraphSession.java
Sync git svn branch with SVN repository r33308.
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / GraphSession.java
index 58917ae747c7c1fad57995288e745d6b14b7b83a..4ba3722fcbba05d42be25404317872fe8947deb7 100644 (file)
@@ -518,7 +518,7 @@ public abstract class GraphSession {
             @Override\r
             public int read() throws IOException {\r
 \r
-                if(left <= 0) throw new IllegalStateException();\r
+                if(left <= 0) return -1;\r
 \r
                 if(offset == _s.bytes.length) {\r
                     short slen = (short)Math.min(left, IMAX);\r