diff --git a/src/component/geo/GeoView.ts b/src/component/geo/GeoView.ts index 2597733a385609503893eb2e7915ea47a27f101b..c1ca7e6ef299366df347b6a18ef3b4bccdfbe63d 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; }