if(b == null && !ignoreNulls)
return null;
if(b != null) {
- if(bounds == null) {
- bounds = b.getFrame();
- } else {
- bounds.add(b);
+ if(!GeometryUtils.isUndefinedRectangle(b)) {
+ if(bounds == null) {
+ bounds = b.getFrame();
+ } else {
+ bounds.add(b);
+ }
}
}
}