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

coverity#1326201 Explicit null dereferenced

Change-Id: Idda78e546db90e939a87ac5ef27363809ce41697
üst 71d5fe74
......@@ -166,16 +166,16 @@ public class _XTopWindow extends MultiMethodTest {
menu = UnoRuntime.queryInterface(XMenuBar.class,
tParam.getMSF().
createInstance("com.sun.star.awt.MenuBar")) ;
menu.insertItem((short)1, "MenuItem",
com.sun.star.awt.MenuItemStyle.CHECKABLE, (short)1) ;
oObj.setMenuBar(menu) ;
} catch (com.sun.star.uno.Exception e) {
log.println("Can't instanciate MenuBar service") ;
result = false ;
}
menu.insertItem((short)1, "MenuItem",
com.sun.star.awt.MenuItemStyle.CHECKABLE, (short)1) ;
oObj.setMenuBar(menu) ;
tRes.tested("setMenuBar()", result) ;
}
......
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