Hello All,
I’ve got an interesting scenario here, revolving around null values.
I have a handler method that has a line of code like so:
rc.open_incidents = rc.current_account.getOpenIncidents();
Now, the current account, may return an array of incident objects, or it may return null.
When returning null, I get an exception from ColdBox when it’s rendering the debug panel:
# Element OPEN_INCIDENTS is undefined in a CFML structure referenced as part of an expression. The error occurred in /Library/tomcat/webapps/sorryapp/coldbox/system/includes/panels/CollectionPanel.cfm: line 21
Called from /Library/tomcat/webapps/sorryapp/coldbox/system/includes/Debug.cfm: line 253
Called from /Library/tomcat/webapps/sorryapp/coldbox/system/web/services/DebuggerService.cfc: line 207
Called from /Library/tomcat/webapps/sorryapp/coldbox/system/Coldbox.cfc: line 338
Called from /Library/tomcat/webapps/sorryapp/Application.cfc: line 38 |
Is this is a bug in the platform?
Thanks.
Robert