-
Notifications
You must be signed in to change notification settings - Fork 168
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 aliasing a macro that does not exist #558
Comments
I'll submit a PR |
bjansen
pushed a commit
to bjansen/pebble
that referenced
this issue
Dec 9, 2020
bjansen
added a commit
to bjansen/pebble
that referenced
this issue
Dec 9, 2020
ebussieres
pushed a commit
that referenced
this issue
Dec 11, 2020
Hi, your PR got merged. Can you close the issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
pebble/src/test/resources/templates/macros/from.peb
like this:com.mitchellbosecke.pebble.macro.TestMacroCalls
. When Pebble evaluates the call tomacro_test()
, it checks that the alias is valid but it doesn't check that it references an existing macro. ANullPointerException
is thrown right after.Expected:
Pebble should throw an error indicating that the aliased macro
iDontExist
does not exist, maybe like:Actual:
The text was updated successfully, but these errors were encountered: