summaryrefslogtreecommitdiff
path: root/qadevOOo/tests
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-15 10:12:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-15 11:38:56 +0100
commit5513e1cff5953865aee4111c9adab8765ab18cdb (patch)
treebbe89494f41132ab50abc990ad951910b3771823 /qadevOOo/tests
parenta5560a555016870a8331e9d39a9dce5927c80c93 (diff)
coverity#1326282 Explicit null dereferenced
Change-Id: I1845d3e5c898e2e4bb929d723171e1cc79d57c4e
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXDiagram.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java
index 310e8a3e9318..50ad0af99e98 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java
@@ -348,15 +348,11 @@ public class ChXDiagram extends TestCase {
* a double-value in the cell else it inserts a formula in the cell
*/
public static void insertIntoCell(
- int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag) {
+ int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag)
+ throws com.sun.star.lang.IndexOutOfBoundsException {
- XCell oCell = null;
+ XCell oCell = TT1.getCellByPosition(CellX, CellY);
- try {
- oCell = TT1.getCellByPosition(CellX, CellY);
- } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
- System.out.println("Could not get Cell");
- }
if (flag.equals("V")) {
oCell.setValue(Float.parseFloat(theValue));
}