summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-15 10:08:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-15 11:38:55 +0100
commit0db3357d63ca9696329cd0ef1f62f52dc99ef894 (patch)
tree042ac2207ccb44d094521502541e591051636ba1 /qadevOOo/tests/java/mod
parent80362fc247c26c07c8e0194d45ea5b79df73882b (diff)
coverity#1326277 Explicit null dereferenced
Change-Id: I6acf72b623eb2211edc6e5a5c1f84acb6964620b
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScChartsObj.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScChartsObj.java b/qadevOOo/tests/java/mod/_sc/ScChartsObj.java
index c35576806171..ce7167e4a46d 100644
--- a/qadevOOo/tests/java/mod/_sc/ScChartsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScChartsObj.java
@@ -218,15 +218,10 @@ public class ScChartsObj 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;
-
- try {
- oCell = TT1.getCellByPosition(CellX, CellY);
- } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
- System.out.println("Could not get Cell");
- }
+ XCell oCell = TT1.getCellByPosition(CellX, CellY);
if (flag.equals("V")) {
oCell.setValue(Float.parseFloat(theValue));