Kaydet (Commit) 28c6c191 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326220 Dereference after null check

Change-Id: I85d82f2c0a1c0ef8c123d9ba1a197e06cd76b92c
üst 41b3bce7
...@@ -463,15 +463,16 @@ public class _XSimpleFileAccess extends MultiMethodTest { ...@@ -463,15 +463,16 @@ public class _XSimpleFileAccess extends MultiMethodTest {
com.sun.star.io.XOutputStream oStream = com.sun.star.io.XOutputStream oStream =
oObj.openFileWrite(copiedFile); oObj.openFileWrite(copiedFile);
tRes.tested("openFileWrite()", oStream != null);
oStream.closeOutput(); oStream.closeOutput();
oObj.kill(copiedFile); oObj.kill(copiedFile);
tRes.tested("openFileWrite()", true);
} }
catch (com.sun.star.uno.Exception ex) { catch (com.sun.star.uno.Exception ex) {
log.println("Exception occurred while testing 'openFileWrite()'"); log.println("Exception occurred while testing 'openFileWrite()'");
ex.printStackTrace(log); ex.printStackTrace(log);
tRes.tested("openFileWrite()",false); tRes.tested("openFileWrite()", false);
} }
} //EOF openFileWrite() } //EOF openFileWrite()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment