-
Notifications
You must be signed in to change notification settings - Fork 84
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
NoViableAltException java.lang.NullPointerException #22
Comments
The CF parser we use is the same one used by CFEclipse. It is pretty good, but has some known issues. It is likely that if you opened the same file in CFEclipse you would see the validation/parsing errors in CFEclipse as well. If you are comfortable attaching an example, I can probably determine what the issue is for you. Often the CF code can be tweaked slightly to be favorable parsed. That said, jjames has also been exploring possibly updating the parser to eliminate these kinds of problems. |
closed. need an example to duplicate this one |
Here is an example if you wouldn't mind re-opening the issue. Thanks! <cfset lParams = "name,addy,city,state,zip" />
<cfquery name="qPeople" datasource="#request.app.datasource.name#">
select *
from people
where 1 = 1
<cfloop index="i" list="#lParams#" >
<cfif url[#i#] neq 'null' AND Trim(url[#i#]) neq "">
<cfif i eq "name">
lastname LIKE <cfqueryparam cfsqltype="cf_sql_varchar" value="%#url[i]#%" />
</cfif>
</cfloop>
</cfquery> |
Thanks laserbyte, |
fixed in antlr4 branch, releasing soon. |
I'm getting multiple NoViableAltException java.lang.NullPointerException errors like the following when scanning a folder:
The text was updated successfully, but these errors were encountered: