sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/03: Fix a NullPointerException when using directly a `new Formatter()` instance.
Date Fri, 29 May 2020 18:35:58 GMT
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

commit e213eb51581ee8a3bd99eed8d58b0bc3aa88b653
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Fri May 29 11:37:07 2020 +0200

    Fix a NullPointerException when using directly a `new Formatter()` instance.
---
 core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java b/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
index 3657a23..5f28fbd 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
@@ -367,6 +367,7 @@ public class Formatter implements Localized {
         this.convention       = convention;
         this.authority        = convention.getNameAuthority();
         this.symbols          = symbols.immutable();
+        this.transliterator   = (convention == Convention.INTERNAL) ? Transliterator.IDENTITY
: Transliterator.DEFAULT;
         this.separatorNewLine = this.symbols.separatorNewLine();
         this.indentation      = (byte) indentation;
         this.numberFormat     = symbols.createNumberFormat();


Mime
View raw message