This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new 77172ed Fix a NullPointerException when the envelope do not contains
an horizontal component.
77172ed is described below
commit 77172edd504c18ee22fefcf93550112193151e2a
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Tue Apr 2 10:10:23 2019 +0200
Fix a NullPointerException when the envelope do not contains an horizontal
component.
---
.../src/main/java/org/apache/sis/geometry/Envelopes.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/sis-referencing/src/main/java/org/apache/sis/geometry/Envelopes.java
b/core/sis-referencing/src/main/java/org/apache/sis/geometry/Envelopes.java
index 3bb6332..71a4530 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/geometry/Envelopes.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/geometry/Envelopes.java
@@ -225,7 +225,7 @@ public final class Envelopes extends Static {
targetAOI = converter.setBounds(target, null,
"findOperation");
if (areaOfInterest == null) {
areaOfInterest = targetAOI;
- } else {
+ } else if (targetAOI != null) {
areaOfInterest.add(targetAOI);
}
} catch (TransformException e) {