diff --git a/src/component/geo/GeoView.ts b/src/component/geo/GeoView.ts index 2597733a38..c1ca7e6ef2 100644 --- a/src/component/geo/GeoView.ts +++ b/src/component/geo/GeoView.ts @@ -69,7 +69,7 @@ class GeoView extends ComponentView { let current = e.target; let eventData: ECEventData; // TODO extract a util function - while ((eventData = getECData(current).eventData) == null) { + while (current && (eventData = getECData(current).eventData) == null) { current = current.__hostTarget || current.parent; }