Potential Bug (Debug Panel): Element is undefined in a CFML structure referenced as part of an expression.

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

Yes I will fix this.

fixed!

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Awesome, thanks Luis.