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 e474c3d Replace a NullPointerException (at `build()` invocation time)
by a more explicit exception thrown earlier.
e474c3d is described below
commit e474c3dde5b8835132471e2974c92d9dce7658e0
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Mon Apr 27 15:54:14 2020 +0200
Replace a NullPointerException (at `build()` invocation time) by a more
explicit exception thrown earlier.
---
.../src/main/java/org/apache/sis/coverage/grid/GridDerivation.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/core/sis-feature/src/main/java/org/apache/sis/coverage/grid/GridDerivation.java
b/core/sis-feature/src/main/java/org/apache/sis/coverage/grid/GridDerivation.java
index 0d03081..39e9bf6 100644
---
a/core/sis-feature/src/main/java/org/apache/sis/coverage/grid/GridDerivation.java
+++
b/core/sis-feature/src/main/java/org/apache/sis/coverage/grid/GridDerivation.java
@@ -310,6 +310,7 @@ public class GridDerivation {
public GridDerivation resize(GridExtent extent, double... scales) {
ArgumentChecks.ensureNonNull("scales", scales);
ensureSubgridNotSet();
+ base.getGridToCRS(PixelInCell.CELL_CENTER); // For making
sure that the transform exist.
subGridSetter = "resize";
final int n = base.getDimension();
if (extent != null) {