-
Notifications
You must be signed in to change notification settings - Fork 85
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 parsing catch with custom error type but no variable #647
Comments
This problem still exists in the current |
fixed in cfparser dev. |
Another surprising difference between ACF and Lucee. I'm not sure why Lucee allows this, but it's too late for that now. |
LOL. cfparser will assume org.example.whateverError is the variable name. Is org.example.whateverError really the component name in Lucee? I suspect not. |
yeah.... lucee preserves the cfcatch name regardless of whether you name the catch var or not. The initial example code is actually a bug IMO. But cfparser shouldn't have blown up. https://trycf.com/gist/c890235192464fcb91eb8ab66ad27e18/lucee5?theme=monokai |
fixed in dev |
File:
Result:
Workaround:
Add a variable name after the custom error type:
CFLint v1.4.1
The text was updated successfully, but these errors were encountered: