Skip to content

Commit

Permalink
Add null safe check for Record features #952
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed May 17, 2024
1 parent 1ac3b7e commit 55f9f80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ class FeatureConverter implements RecordFieldConverter {
}

static Double getDecimalLatitude (Map data) {
switch (data.type) {
switch (data?.type) {
case 'Point':
return data.coordinates[1]
}
}

static Double getDecimalLongitude (Map data) {
switch (data.type) {
switch (data?.type) {
case 'Point':
return data.coordinates[0]
}
Expand Down

0 comments on commit 55f9f80

Please sign in to comment.