coverity#1326447 Dereference null return value

Change-Id: I76f81e86cdeb33ec99f4aade314bbb719a0b1ef4
This commit is contained in:
Caolán McNamara
2016-01-21 14:39:59 +00:00
parent 4d95bd6261
commit 524c99524f

View File

@@ -94,19 +94,14 @@ public class MutableTreeNode extends TestCase {
return tEnv; return tEnv;
} // finish method getTestEnvironment } // finish method getTestEnvironment
private void fillNode( XMutableTreeNode xNode ){ private void fillNode( XMutableTreeNode xNode ) throws com.sun.star.uno.Exception {
if( xNode.getChildCount() == 0 ) if( xNode.getChildCount() == 0 )
{ {
xNode.getDataValue(); xNode.getDataValue();
String officeUserPath = utils.getOfficeUserPath(mxMSF); String officeUserPath = utils.getOfficeUserPath(mxMSF);
Object fileacc = null; Object fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
try {
fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
} catch (com.sun.star.uno.Exception ex) {
ex.printStackTrace();
}
UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);