diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-04 09:53:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-04 11:24:27 +0000 |
commit | 5adfcaaadc45b38ed0358a3dde4c39d79b6ceedc (patch) | |
tree | 95b8b790b8125e097909c74bb225b72ead890b05 /wizards | |
parent | 8a1c6cba0a7cd579274826f1831934f67d957fe4 (diff) |
coverity#1326304 Explicit null dereferenced
Change-Id: I9eb58884e41d9669d2413f7b5b63bddf6a4b4320
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/document/GridControl.java | 5 |
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); |