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 f91de6eb21 Partial revert of commit 58cd2d4: the null check is still
needed.
f91de6eb21 is described below
commit f91de6eb21ac26a12d69fe34eca3c39dcb46be89
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Thu May 12 17:04:01 2022 +0200
Partial revert of commit 58cd2d4: the null check is still needed.
---
.../src/main/java/org/apache/sis/gui/coverage/CoverageCanvas.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/CoverageCanvas.java
b/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/CoverageCanvas.java
index dbb2663839..acb53c1a59 100644
---
a/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/CoverageCanvas.java
+++
b/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/CoverageCanvas.java
@@ -470,7 +470,7 @@ public class CoverageCanvas extends MapCanvasAWT {
if (isCoverageAdjusting) {
return;
}
- try {
+ if (toClear != null) try {
isCoverageAdjusting = true;
toClear.set(null);
} finally {