diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/ParseContextImpl.java b/json-path/src/main/java/com/jayway/jsonpath/internal/ParseContextImpl.java index 976f8481..d03790ba 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/ParseContextImpl.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/ParseContextImpl.java @@ -46,7 +46,7 @@ public class ParseContextImpl implements ParseContext { @Override public DocumentContext parse(InputStream json, String charset) { notNull(json, "json input stream can not be null"); - notNull(json, "charset can not be null"); + notNull(charset, "charset can not be null"); try { Object obj = configuration.jsonProvider().parse(json, charset); return new JsonContext(obj, configuration);