Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ public double getY() {
}

public Coordinate getCoordinate() {
return coordinates.size() != 0 ? coordinates.getCoordinate(0): null;
if (coordinates.size() == 0) {
throw new IllegalStateException("getCoordinate called on empty Point");
}
return coordinates.getCoordinate(0);
}

public String getGeometryType() {
Expand Down