summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-04 09:53:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-03-04 11:24:27 +0000
commit5adfcaaadc45b38ed0358a3dde4c39d79b6ceedc (patch)
tree95b8b790b8125e097909c74bb225b72ead890b05 /wizards
parent8a1c6cba0a7cd579274826f1831934f67d957fe4 (diff)
coverity#1326304 Explicit null dereferenced
Change-Id: I9eb58884e41d9669d2413f7b5b63bddf6a4b4320
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/document/GridControl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/document/GridControl.java b/wizards/com/sun/star/wizards/document/GridControl.java
index cca5de994cae..381370835d7c 100644
--- a/wizards/com/sun/star/wizards/document/GridControl.java
+++ b/wizards/com/sun/star/wizards/document/GridControl.java
@@ -57,6 +57,11 @@ public class GridControl extends Shape
"Error: GridModel does not export XControlModel interface");
}
+ if (xControlShape == null) {
+ throw new Exception(
+ "Error: GridModel does not have a XControlShape");
+ }
+
xControlShape.setControl(xControlModel);
xPropertySet = UnoRuntime.queryInterface( XPropertySet.class, oGridModel );
oFormHandler.xDrawPage.add(xShape);