Skip to content

NPE in QueryUtils #2832

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

Closed
edreyer opened this issue Mar 1, 2023 · 1 comment
Closed

NPE in QueryUtils #2832

edreyer opened this issue Mar 1, 2023 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@edreyer
Copy link

edreyer commented Mar 1, 2023

Spring boot v2.7.9
Spring data JPA 2.7.8
Class: org.springframework.data.jpa.repository.query.QueryUtils
Line: 607

It's possible that nativeQuery is true and variable is null.
In this case, an NPE occurs at variable.contains(",")

if (nativeQuery && (variable.contains(",") || "*".equals(variable))) {

curbee-backend_–_QueryUtils_java__Maven__org_springframework_data_spring-data-jpa_2_7_8_

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 1, 2023
@gregturn
Copy link
Contributor

gregturn commented Mar 2, 2023

Duplicates #2812.

@gregturn gregturn closed this as completed Mar 2, 2023
@gregturn gregturn added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants