diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-05 21:00:47 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-05 23:08:25 +0100 |
commit | 9429fe7b1c7f372d2407dbbc939385ef95db466f (patch) | |
tree | a7927ebf5bf41073940cc5a3eab82861c7c03afc /qadevOOo/tests | |
parent | 072b13738781f78a8318053d8cfea39558de17f5 (diff) |
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
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java index 0b9a71c860a3..8bd96755b674 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java @@ -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, |