From c0dd9a382be5d3ce682cf2b1b5b8b93951061b1b Mon Sep 17 00:00:00 2001 From: 100pah Date: Fri, 20 Nov 2020 21:31:45 +0800 Subject: [PATCH] fix: fix NPE when click an area in geo map. --- src/component/geo/GeoView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }