diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-03 13:56:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-04 13:55:56 +0000 |
commit | 28c6c1913ffbf5ca2c757f5287903cda24a89246 (patch) | |
tree | 6c67dd2ffa205f59f3587cdfb2c4e8a0e13d05ba /qadevOOo | |
parent | 41b3bce73a95034a3a246db6344cd065e1ca4597 (diff) |
coverity#1326220 Dereference after null check
Change-Id: I85d82f2c0a1c0ef8c123d9ba1a197e06cd76b92c
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java index ff9461528a13..0d34af24ba6b 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java +++ b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java @@ -463,15 +463,16 @@ public class _XSimpleFileAccess extends MultiMethodTest { com.sun.star.io.XOutputStream oStream = oObj.openFileWrite(copiedFile); - tRes.tested("openFileWrite()", oStream != null); oStream.closeOutput(); oObj.kill(copiedFile); + + tRes.tested("openFileWrite()", true); } catch (com.sun.star.uno.Exception ex) { log.println("Exception occurred while testing 'openFileWrite()'"); ex.printStackTrace(log); - tRes.tested("openFileWrite()",false); + tRes.tested("openFileWrite()", false); } } //EOF openFileWrite() |