Skip to content

Commit

Permalink
Merge pull request #13653 from apache/fix/geo-click-error
Browse files Browse the repository at this point in the history
fix: fix NPE when click an area in geo map.
  • Loading branch information
100pah authored Nov 20, 2020
2 parents 9d8cfc7 + c0dd9a3 commit 3d6e3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/geo/GeoView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3d6e3ea

Please sign in to comment.