Don’t forget to tell us about your stack!
OS: Win 10
Java Version: 1.8.0_271
Tomcat Version: 9.0.11
Lucee Version: 5.3.8.201
Getting a weird error here, no idea what to make of it. Anyone has any ideas?
<cftry>
<cfcatch type="any">
</cfcatch>
<cffinally>
<cfloop query="filesToMerge">
<cftry>
<cffile action="delete" file="#filesToMerge.name#">
<cfcatch>
</cfcatch>
</cftry>
</cfloop>
</cffinally>
</cftry>
This code does not produce the NullPointerException:
<cftry>
<cfcatch type="any">
</cfcatch>
<cffinally>
<cfloop collection="#filesToMerges#" index="index" item="filesToMerge">
<cftry>
<cffile action="delete" file="#filesToMerge.name#">
<cfcatch>
</cfcatch>
</cftry>
</cfloop>
</cffinally>
</cftry>
Somehow seems to be connected with the loop type being query maybe?