summaryrefslogtreecommitdiff
path: root/gerbonara/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r--gerbonara/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerbonara/utils.py b/gerbonara/utils.py
index 47fb178..ce5425a 100644
--- a/gerbonara/utils.py
+++ b/gerbonara/utils.py
@@ -527,6 +527,9 @@ def point_in_polygon(point, poly):
def bbox_intersect(a, b):
+ if a is None or b is None:
+ return False
+
(xa_min, ya_min), (xa_max, ya_max) = a
(xb_min, yb_min), (xb_max, yb_max) = b