From 524c99524f15672d402be8cf14a6c8393ad71b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 21 Jan 2016 14:39:59 +0000 Subject: [PATCH] coverity#1326447 Dereference null return value Change-Id: I76f81e86cdeb33ec99f4aade314bbb719a0b1ef4 --- qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java | 9 ++------- 1 file 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);