Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 11/13/2012
Components: Language
Versions: 9.0.1
Failure Type:
Found In Build/Fixed In Build: 9.0.1 / 286560
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Win XP All
Vote Count: 1
Problem Description:
With <cfparam> one can do this:
<cfparam name="variables.myRequiredVariable">
This will cause an exception to be raised if variables.myRequiredVariable does not exist. The equivalent functionality for param would be this:
param name="variables.myRequiredVariable";
This however does not work: no exception is raised, and the code continues to run.
Steps to Reproduce:
See above
Actual Result:
See above
Expected Result:
See above
Any Workarounds:
Use structKeyExists() and a throw(), but this is less than ideal.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3364510
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: