Null Reference I don't understand

2009-04-06 Thread Steve Cohen
I am making a reference from a template that isn't working and, based on what I see in my logs, it makes no sense to me. Here is the template: Thank you. Your new phone number is $tn.USFormattedTn $tn is an object of class TelephoneNumber. TelephoneNumber has a method String getUSFormattedTn(

Re: Null Reference I don't understand

2009-04-06 Thread Nathan Bubna
Are you sure that getUSFormattedTn() is declared public and that TelephoneNumber is a public class? If so, double check directly that tn is in the context and is the expected class by doing $tn.class right before or after the call to $tn.USFormattedTn. If all above checks out, you might as well t

Re: Null Reference I don't understand

2009-04-06 Thread Raymond Auge
Also, wouldn't the naming rules imply that method "getUSFormattedTn()" be referenced as property "uSFormattedTn"? Ray On Mon, 2009-04-06 at 07:14 -0700, Nathan Bubna wrote: > Are you sure that getUSFormattedTn() is declared public and that > TelephoneNumber is a public class? > > If so, double

Re: Null Reference I don't understand

2009-04-06 Thread Nathan Bubna
Both should work. We've always allowed $bar.getFoo() to be referenced as $bar.foo or $bar.Foo But you're right. It would be good to confirm whether $tn.uSFormattedTn works, just to make sure something wasn't broken in the release being used. On Mon, Apr 6, 2009 at 10:01 AM, Raymond Auge wrote:

Re: Null Reference I don't understand

2009-04-06 Thread Steve Cohen
Nathan Bubna wrote: Are you sure that getUSFormattedTn() is declared public and that TelephoneNumber is a public class? Yes. If so, double check directly that tn is in the context The log file entry below confirms that. and is the expected class by doing $tn.class right before or after the

Re: Null Reference I don't understand

2009-04-06 Thread Nathan Bubna
On Mon, Apr 6, 2009 at 3:49 PM, Steve Cohen wrote: > Nathan Bubna wrote: >> >> Are you sure that getUSFormattedTn() is declared public and that >> TelephoneNumber is a public class? >> > > Yes. >> >> If so, double check directly that tn is in the context > > The log file entry below confirms that.