We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef98498 commit 8093f28Copy full SHA for 8093f28
src/main/java/org/xmlobjects/gml/model/geometry/Envelope.java
@@ -264,7 +264,7 @@ public Envelope include(Envelope other) {
264
265
public Envelope include(List<Double> ordinates) {
266
if (ordinates != null && !ordinates.isEmpty()) {
267
- int dimension = Math.min(lowerCorner.getValue().size(), upperCorner.getValue().size());
+ int dimension = !isEmpty() ? Math.min(lowerCorner.getValue().size(), upperCorner.getValue().size()) : 0;
268
if (dimension == 0) {
269
lowerCorner.setValue(new ArrayList<>(ordinates));
270
upperCorner.setValue(new ArrayList<>(ordinates));
0 commit comments