Kaydet (Commit) 9429fe7b authored tarafından Markus Mohrhard's avatar Markus Mohrhard

possible fix for fdo#43312

did not test that yet, should be quite safe to avoid a null pointer
exception but the selected area might need some change to allow tests to
pass
üst 072b1373
......@@ -174,6 +174,7 @@ public class ScDatabaseRangeObj extends TestCase {
dbRanges.removeByName("dbRange");
}
//CellRangeAddress aRange = new CellRangeAddress((short)0, 0, 0, 0, 13);
CellRangeAddress aRange = null;
......@@ -183,11 +184,12 @@ public class ScDatabaseRangeObj extends TestCase {
XNamed xNamed = null;
try {
String[] dbNames = dbrNA.getElementNames();
// we need to add it
dbRanges.addNewByName("dbRanges",new CellRangeAddress((short)0, 0, 0, 0, 5));
xNamed = (XNamed) UnoRuntime.queryInterface(XNamed.class,
dbrNA.getByName(
dbNames[0]));
xNamed.setName("dbRange");
"dbRange"));
XCellRangeReferrer aReferrer = (XCellRangeReferrer) UnoRuntime.queryInterface(
XCellRangeReferrer.class,
......
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