From ee7cd4fbf5f062d644e2ae327fa044137f67e6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kraus?= Date: Wed, 3 May 2023 15:30:07 +0200 Subject: [PATCH] Fixed failing TCK: jsonParserFactoryTest6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Kraus --- impl/src/main/java/org/eclipse/parsson/JsonProviderImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/impl/src/main/java/org/eclipse/parsson/JsonProviderImpl.java b/impl/src/main/java/org/eclipse/parsson/JsonProviderImpl.java index 447f6915..041003a0 100644 --- a/impl/src/main/java/org/eclipse/parsson/JsonProviderImpl.java +++ b/impl/src/main/java/org/eclipse/parsson/JsonProviderImpl.java @@ -66,7 +66,9 @@ public JsonParser createParser(InputStream in) { @Override public JsonParserFactory createParserFactory(Map config) { - return new JsonParserFactoryImpl(new JsonContext(config, bufferPool)); + return config == null + ? new JsonParserFactoryImpl(emptyContext) + : new JsonParserFactoryImpl(new JsonContext(config, bufferPool, JsonContext.PROPERTY_BUFFER_POOL)); } @Override