Thanks Bhuvan, I added a check for null as you suggested and that 
fixed the problem.  I am confused why it the extended renderer would 
work without this check when run locally in the Flex builder but 
needed it when the app was compiled and moved to the server.


--- In flexcoders@yahoogroups.com, "Flexing..." <[EMAIL PROTECTED]> wrote:
>
> This is basically a null pointer exception.
> In your itemrenderer you must be trying to access the variable of 
an  
> object to probably display the value.
> The object in this case is null.
> You need to add nullity check in your code.
> 
> 
> On Jun 1, 2007, at 12:19 AM, sarah_e_boys wrote:
> 
> >
> > I get the following error when I try and run my application on a
> > production server:
> >
> > TypeError: Error #1009: Cannot access a property or method of a 
null
> > object reference.
> > at samples::MyTreeItemRenderer/set data()
> >
> > The application works fine if I reference it with 
http://localhost or
> > run if from Flex Builder. I hope it is something very simple 
regarding
> > a reference to the MyTreeItemRenderer.as class not being compiled 
into
> > the swf file. I would be grateful for any suggestions...
> >
> >
> >
>


Reply via email to