Skip to content

Commit 8093f28

Browse files
committed
minor change
1 parent ef98498 commit 8093f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/xmlobjects/gml/model/geometry/Envelope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public Envelope include(Envelope other) {
264264

265265
public Envelope include(List<Double> ordinates) {
266266
if (ordinates != null && !ordinates.isEmpty()) {
267-
int dimension = Math.min(lowerCorner.getValue().size(), upperCorner.getValue().size());
267+
int dimension = !isEmpty() ? Math.min(lowerCorner.getValue().size(), upperCorner.getValue().size()) : 0;
268268
if (dimension == 0) {
269269
lowerCorner.setValue(new ArrayList<>(ordinates));
270270
upperCorner.setValue(new ArrayList<>(ordinates));

0 commit comments

Comments
 (0)