coverity#1326304 Explicit null dereferenced

Change-Id: I9eb58884e41d9669d2413f7b5b63bddf6a4b4320
This commit is contained in:
Caolán McNamara 2016-03-04 09:53:13 +00:00
parent 8a1c6cba0a
commit 5adfcaaadc

View File

@ -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);