summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-15 10:06:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-15 11:38:54 +0100
commit80362fc247c26c07c8e0194d45ea5b79df73882b (patch)
tree9e8245f6159d44373f21ccd82b88236b316e9b48 /qadevOOo/tests/java/mod
parentd25837925d6d35073d71a59acb91182afce3e8df (diff)
coverity#1326278 Explicit null dereferenced
Change-Id: Idc7f4d852a10e4943beca1f1986dc8e7cf2354d5
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScChartObj.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScChartObj.java b/qadevOOo/tests/java/mod/_sc/ScChartObj.java
index 6b1515b3e5e8..31cdba5baeff 100644
--- a/qadevOOo/tests/java/mod/_sc/ScChartObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScChartObj.java
@@ -221,14 +221,8 @@ public class ScChartObj extends TestCase {
*/
public static void insertIntoCell(
int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag)
- {
- XCell oCell = null;
-
- try {
- oCell = TT1.getCellByPosition(CellX, CellY);
- } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
- System.out.println("Could not get Cell");
- }
+ throws com.sun.star.lang.IndexOutOfBoundsException {
+ XCell oCell = TT1.getCellByPosition(CellX, CellY);
if (flag.equals("V")) {
oCell.setValue(Float.parseFloat(theValue));