Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): James Mohler / James Mohler (James Mohler)
Created: 02/25/2016
Components: Language
Versions: 2016
Failure Type: Crash
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: ALL / Mac 10.11
Vote Count: 0
Problem Description: safe navigation cannot be used with param
Steps to Reproduce:
Consider the case where a variable called Bootstrap exists, but Bootstrap profile does not
param attributes.profile = Bootstrap?.profile;
This doesn't work either
param attributes.profile = "#Bootstrap?.profile#";
Actual Result:
The required parameter ATTRIBUTES.PROFILE was not provided.
This page uses the cfparam tag to declare the parameter ATTRIBUTES.PROFILE as required for this template. The parameter is not available. Ensure that you have passed or initialized the parameter correctly. To set a default value for the parameter, use the default attribute of the cfparam tag. (Expression)
Expected Result:
attributes.profile should be set to blank
Any Workarounds:
if(Bootstrap.keyExists("profile")) {
param attributes.profile = Bootstrap.profile;
}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4121621
External Customer Info:
External Company:
External Customer Name: James Mohler
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: