coverity#1326447 Dereference null return value
Change-Id: I76f81e86cdeb33ec99f4aade314bbb719a0b1ef4
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user