April 2011

You are browsing the archive for April 2011.

ColdFusion null Gotcha

As you probably know, CFML doesn't have any concept of nulls within it's own type system. It has some facilities for dealing with nulls due to interfaces with other type systems (e.g., from Java or JavaScript).  At least on ColdFusion, it's not perfect.  Consider this code:
s = {
'javaCast' = javaCast('null', 0),
'json' [...]