diff options
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/io/_XOutputStream.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/io/_XOutputStream.java b/qadevOOo/tests/java/ifc/io/_XOutputStream.java index 01caa6f48d20..c183002128c5 100644 --- a/qadevOOo/tests/java/ifc/io/_XOutputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XOutputStream.java @@ -83,12 +83,16 @@ public class _XOutputStream extends MultiMethodTest { res = false; } - XInputStream xInStream = checker.getInStream(); byte[][] readData = new byte[1][data.length]; - try { - xInStream.readBytes(readData, data.length); - } catch(com.sun.star.io.IOException e) { - log.println("Couldn't read data:" + e); + XInputStream xInStream = checker.getInStream(); + if (xInStream == null) { + try { + xInStream.readBytes(readData, data.length); + } catch(com.sun.star.io.IOException e) { + log.println("Couldn't read data:" + e); + res = false; + } + } else { res = false; } |