Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant