The MyTreeItemRenderer class is compiled in otherwise you'd get a verify
error.  Somewhere in the data setter it is getting a null reference.  If
you turn on verbose-stacktrace it will give you the line number.  If the
item renderer loads images/icons dynamically, the timing of when the
loading completes can be really different on a production server.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Thursday, May 31, 2007 8:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Error #1009 - Problem running swf on
production server

 

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
<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