diff --git a/src/Geometry/Collection.php b/src/Geometry/Collection.php index a178fcdd..b56c73ef 100644 --- a/src/Geometry/Collection.php +++ b/src/Geometry/Collection.php @@ -141,6 +141,9 @@ public function getBBox() $maxX = $maxY = $minX = $minY = 0; foreach ($this->components as $i => $component) { $componentBoundingBox = $component->getBBox(); + if ($componentBoundingBox === null) { + continue; + } // On the first run through, set the bounding box to the component's bounding box if ($i == 0) {