diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 09:29:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-15 09:29:29 +0200 |
commit | 06907141b9f47df4c179be4c0d06b62fecf74528 (patch) | |
tree | 0ee4bb146ee2bdbfa6ad71f32476dae0ad3d2cc6 /scripting/java | |
parent | bc492df7132d25d221fb44a24409a393ae6aa6ff (diff) |
cid#1326116 Unchecked return value
Change-Id: If33ea9c4e4388cc1b7d15847f32dd2228b047363
Diffstat (limited to 'scripting/java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java index a6c5d69d7941..8320b6227cdb 100644 --- a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java +++ b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java @@ -75,7 +75,9 @@ public class XInputStreamImpl implements XInputStream { com.sun.star.io.BufferSizeExceededException, com.sun.star.io.IOException { try { - is.skip(nBytesToSkip); + do { + nBytesToSkip -= is.skip(nBytesToSkip); + } while (nBytesToSkip > 0); } catch (IOException e) { throw new com.sun.star.io.IOException(e); } |