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

NPE when validating Qute template where a method is invoked #748

Closed
datho7561 opened this issue Sep 21, 2022 · 2 comments
Closed

NPE when validating Qute template where a method is invoked #748

datho7561 opened this issue Sep 21, 2022 · 2 comments
Labels
bug Something isn't working qute validation
Milestone

Comments

@datho7561
Copy link
Contributor

Given the following Qute template, where the object "map" is not declared anywhere:

{map.get("string")}

map is marked properly with a warning, however, there is an NPE in the output related to trying to validate get(...)

@datho7561 datho7561 added bug Something isn't working validation qute labels Sep 21, 2022
@angelozerr
Copy link
Contributor

My PR #743 should fix this issue with a test.

@angelozerr
Copy link
Contributor

This issue is fixed by #743 and it exists a test in

public void undefinedObjectPartWithKwownMethodResolver() throws Exception {

@angelozerr angelozerr added this to the 0.13.0 milestone Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qute validation
Projects
None yet
Development

No branches or pull requests

2 participants