Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Jork Zijlstra / Jork Zijlstra (Jork Zijlstra)
Created: 12/10/2015
Components: Core Runtime
Versions: 2016,11.0,10.0
Failure Type:
Found In Build/Fixed In Build: Final / 2018,0,0,308372
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Linux All
Vote Count: 4
Problem Description:
Calling a isnull(struct["key"])); with a struct notation like struct["key"] (square bracket version) will cause an element us undefined in struct error.
Steps to Reproduce:
{code:java}
struct = {"key" = javacast("null", 0)};
writeDump(isnull(struct["key"]));
{code}
Actual Result:
Element key is undefined in a CFML structure referenced as part of an expression.
Expected Result:
Result off the isnull method
Any Workarounds:
Do not use the ["key"] (square brackets) notation to navigate the struct
Use the dot notation like isnull(struct.key);
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4098395
External Customer Info:
External Company:
External Customer Name: Jork Zijlstra
External Customer Email:
External Test Config: My Hardware and Environment details:
Ubuntu 14.04, CF10,0,18,29633
Attachments:
Comments: