Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

JSONPath 取值报空指针 #4385

Open
vdiskg opened this issue May 6, 2023 · 0 comments · May be fixed by #4386
Open

JSONPath 取值报空指针 #4385

vdiskg opened this issue May 6, 2023 · 0 comments · May be fixed by #4386

Comments

@vdiskg
Copy link

vdiskg commented May 6, 2023

    public static void main(String[] args) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("key1", "");
        JSONPath.eval(jsonObject, "$.key1.key2"); // NullPointerException
    }
@vdiskg vdiskg linked a pull request May 6, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant