Skip to content

Commit

Permalink
Fix crash on empty account coords
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine-BL committed Mar 17, 2024
1 parent 22b8e7d commit e08c813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/geometry/geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func IsInGeom(point []float64, geometry mapobject.Geometry) bool {
if point == nil {
if point == nil || len(point) != 2 {
return false
}
if geometry.GeomType == "Point" {
Expand Down

0 comments on commit e08c813

Please sign in to comment.