summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-21 14:39:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-21 15:15:52 +0000
commit524c99524f15672d402be8cf14a6c8393ad71b54 (patch)
tree699c81b2a586bf5ec2ec23cbc417c62911c0c7e6 /qadevOOo
parent4d95bd62613344de9cba32e09c37fe60d6383dc4 (diff)
coverity#1326447 Dereference null return value
Change-Id: I76f81e86cdeb33ec99f4aade314bbb719a0b1ef4
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java
index cd41f19fec66..c8e15602070b 100644
--- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java
+++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java
@@ -94,19 +94,14 @@ public class MutableTreeNode extends TestCase {
return tEnv;
} // finish method getTestEnvironment
- private void fillNode( XMutableTreeNode xNode ){
+ private void fillNode( XMutableTreeNode xNode ) throws com.sun.star.uno.Exception {
if( xNode.getChildCount() == 0 )
{
xNode.getDataValue();
String officeUserPath = utils.getOfficeUserPath(mxMSF);
- Object fileacc = null;
- try {
- fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
- } catch (com.sun.star.uno.Exception ex) {
- ex.printStackTrace();
- }
+ Object fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);