[flexcoders] Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-01 Thread Sergey Kovalyov
Hi All! When I add a new item to the tree node and then open this item by user input null pointer exceptions is thrown and after that Tree behavior becomes strange. Steps to reproduce: 1. Run application. 2. Select My Branch node. 3. Click Add button. As a result My Leaf subnode is created as a

Re: [flexcoders] Cannot access a property or method of a null object reference?

2008-06-09 Thread Michael Schmalle
Hi, >From the look if it ;ComboBox(event.target).selectedItem seems to be where the null pointer is. Make sure you actually have a selectedItem in the list. I have actually done this myself when testing and actually forgot to 'select' an item before a service call. Mike On Mon, Jun 9, 2008 at

[flexcoders] Cannot access a property or method of a null object reference?

2008-06-09 Thread xaero
Hi I'my working whit flex and amfphp. In my exercise, the flex debug say this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at cys/changeHandler()[D:\My Documents\FlexBuilder3\cys\src\cys.mxml:51] at cys/__atclass_close()[D:\My Documents\Fl

RE: [flexcoders] Cannot access a property or method of a null object reference

2008-01-02 Thread Gordon Smith
: [flexcoders] Cannot access a property or method of a null object reference Hi, you need to create an instance of the testClass like this var test:testClass = new testClass(); regards, Christophe -- Christophe Herreman http://www.herrodius.com <http://www.herrodius.com>

Re: [flexcoders] Cannot access a property or method of a null object reference

2008-01-01 Thread fmotagarcia
you forgot to instantiate the object. Change: var test:testClass; to var test:testClass = new testClass(); and it should work. Regards, Frederico Garcia On Tue, 01 Jan 2008 14:45:00 -0500, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > This compiles but when you hit the test button, it sa

Re: [flexcoders] Cannot access a property or method of a null object reference

2008-01-01 Thread [EMAIL PROTECTED]
Thanks, that was it. Christophe Herreman wrote: > > Hi, > > you need to create an instance of the testClass like this > > var test:testClass = new testClass(); > > regards, > Christophe > > -- > Christophe Herreman > http://www.herrodius.com > http://www.pranaframework.c

Re: [flexcoders] Cannot access a property or method of a null object reference

2008-01-01 Thread Christophe Herreman
Hi, you need to create an instance of the testClass like this var test:testClass = new testClass(); regards, Christophe -- Christophe Herreman http://www.herrodius.com http://www.pranaframework.com 2008/1/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > This compiles but when you hit the test b

[flexcoders] Cannot access a property or method of a null object reference

2008-01-01 Thread [EMAIL PROTECTED]
This compiles but when you hit the test button, it says TypeError: Error #1009: Cannot access a property or method of a null object reference. at Main/test() at Main/__b1_click() Can anyone explain what this means ? It totally does not make any sense to me. >>main.mxml: htt

[flexcoders] Cannot access a property or method of a null object reference

2007-02-16 Thread napearson99
I often get this error and I "usually" know why. Does anyone know how to check for a null reference? i.e. if (dataprovider[i].someValue is null){ dothis(); } Where dataprovider[i] does not have a someValue property. I bet this is pretty simple and I just don't know the syntax. Thanks in adva

RE: [flexcoders] Cannot access a property or method of a null object reference

2007-01-27 Thread Tracy Spratt
p them now. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Thursday, January 25, 2007 12:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cannot access a property or method of a null object

Re: [flexcoders] Cannot access a property or method of a null object reference

2007-01-25 Thread Clint Tredway
most likely the setting of the selectedIndex is what is causing that error. Its trying to set a property to a component that doesnt exist yet. On 1/25/07, Roger Ross <[EMAIL PROTECTED]> wrote: Hello, Working my way throught the "Training From the Source" turorial and ran into this error mess

Re: [flexcoders] Cannot access a property or method of a null object reference

2007-01-25 Thread Doug McCune
Is catalog misspelled? categories = event.result.catelog.category; If there's no catelog child of the XML root, then trying to access a child of that node will probably throw the error. Doug Roger Ross wrote: Hello, Working my way throught the "Training From the Source" turorial and ran i

[flexcoders] Cannot access a property or method of a null object reference

2007-01-25 Thread Roger Ross
Hello, Working my way throught the "Training From the Source" turorial and ran into this error message. Not sure why I am getting it. I compared my code to the completed code for the lesson and it looks the same with no problems when I compile it. TypeError: Error #1009: Cannot access a propert