On 5/13/05, Paul Hastings <[EMAIL PROTECTED]> wrote:
> <cfscript>
> try {
> nulledVar=someJavaObjectThatCanReturnNull();
> }
> catch (Any e) {
> nulledVar="something";
> }
> writeoutput("#nulledVar#");
> </cfscript>
This bombs because you are not testing for null. It won't catch the
(valid) return of a null from Java. Try this instead:
nulledVar=someJavaObjectThatCanReturnNull();
if (not isDefined("nulledVar")) {
nulledVar="something";
}
writeOutput("#nulledVar#");
--
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]