Skip to content

Commit

Permalink
Fixed failing TCK: jsonParserFactoryTest6
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
  • Loading branch information
Tomas-Kraus authored and lukasj committed May 3, 2023
1 parent bd5c4b2 commit ee7cd4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion impl/src/main/java/org/eclipse/parsson/JsonProviderImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public JsonParser createParser(InputStream in) {

@Override
public JsonParserFactory createParserFactory(Map<String, ?> 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
Expand Down

0 comments on commit ee7cd4f

Please sign in to comment.