Jenkins build is still unstable: johnzon #719

2020-02-09 Thread Apache Jenkins Server
See 



Jenkins build is still unstable: johnzon #718

2020-02-09 Thread Apache Jenkins Server
See 



Jenkins build is still unstable: johnzon #717

2020-02-09 Thread Apache Jenkins Server
See 



[johnzon] branch master updated: avoid uninitialized MapperBuilder for pojo<->JsonValue mapping

2020-02-09 Thread rmannibucau
This is an automated email from the ASF dual-hosted git repository.

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git


The following commit(s) were added to refs/heads/master by this push:
 new 5325f9f  avoid uninitialized MapperBuilder for pojo<->JsonValue mapping
5325f9f is described below

commit 5325f9f8d9f02ac4b9b121b28fdda928fabb3e01
Author: Romain Manni-Bucau 
AuthorDate: Sun Feb 9 20:22:51 2020 +0100

avoid uninitialized MapperBuilder for pojo<->JsonValue mapping
---
 .../java/org/apache/johnzon/mapper/MapperBuilder.java | 15 +--
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git 
a/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java 
b/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java
index 3482e5a..93decfb 100644
--- a/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java
+++ b/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java
@@ -193,12 +193,15 @@ public class MapperBuilder {
 if (encoding != null) {
 config.put("org.apache.johnzon.encoding", encoding.name());
 }
-if (readerFactory == null) {
-readerFactory = provider.createReaderFactory(config);
-}
-if (builderFactory == null) {
-builderFactory = provider.createBuilderFactory(emptyMap());
-}
+}
+if (this.provider == null) {
+this.provider = JsonProvider.provider();
+}
+if (readerFactory == null) {
+readerFactory = provider.createReaderFactory(emptyMap());
+}
+if (builderFactory == null) {
+builderFactory = provider.createBuilderFactory(emptyMap());
 }
 
 if (accessMode == null) {