summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-15 10:14:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-15 20:24:48 +0000
commit506d18aa3bfc966b79f447dfc850c547568be7cd (patch)
treeea513421eec25361ba5a1b0169e781321e348a62 /qadevOOo
parent65abc5e30181d68baf47e18d2b7b0292be7f92f1 (diff)
coverity#1326416 Dereference null return value
Change-Id: I8c215da294d6c48d37849c25c40d8632f1949fba
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java
index 72f3ceaf6c0b..92f9d2c1fc6f 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java
@@ -471,7 +471,7 @@ public class _XDataPilotTable2 extends MultiMethodTest
private boolean checkDrillDownSheetContent(XSpreadsheet xSheet, Object[][] data)
{
CellAddress lastCell = getLastUsedCellAddress(xSheet, 0, 0);
- if (data.length <= 0 || lastCell.Row == 0 || lastCell.Column == 0)
+ if (data.length <= 0 || lastCell == null || lastCell.Row == 0 || lastCell.Column == 0)
{
log.println("empty data condition");
return false;