coverity#1326304 Explicit null dereferenced
Change-Id: I9eb58884e41d9669d2413f7b5b63bddf6a4b4320
This commit is contained in:
parent
8a1c6cba0a
commit
5adfcaaadc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user