Show a bit more code and the full stack trace of the error
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
flexaustin
Sent: Saturday, November 22, 2008 8:30 PM
To: [email protected]
Subject: [flexcoders] Re: Null object doesnt exist? What is going on?
Yes, that line is in a private function. I wrote this line
if(strtRoot == null){throw Error("strtRoot missing") };
to test things and throw an error before we get to strtRoot = new line
and the error gets thrown. Am I missing something?
--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, "Tracy
Spratt" <[EMAIL PROTECTED]> wrote:
>
> "I get a null object error on strtRoot" which line raises the exception?
> Paste the text of the error.
>
>
>
> You are *sure* that this line is in a function?
>
> strtRoot = new Thingy(somearrary[1]);
>
>
>
> Tracy
>
>
>
> ________________________________
>
> From: [email protected]<mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of flexaustin
> Sent: Friday, November 21, 2008 6:12 PM
> To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Null object doesnt exist? What is going on?
>
>
>
> Ok, in my custom component I have this line:
>
> // root node to start with
> private var strtRoot:IThingy;
>
> Later in a function call from init() I call this:
>
> strtRoot = new Thingy(somearrary[1]);
>
> I get a null object error on strtRoot. I am try to create strtRoot why
> am I getting this error?
>
> I use this code in another area and it runs fine, but when I use it to
> create another object it throws an error. And yes I have check that
> somearray[1] exists.
>
> TIA
>