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

2008-07-02 Thread Sergey Kovalyov
Probably, you have not selected the first item before clicking on a button. That's why new item has not been added. See this: var parentXML : XML = XML(tree.selectedItem); var newItemXML : XML = item label=My Leaf isBranch=true /; tree.dataDescriptor.addChildAt(parentXML, newItemXML,

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

2008-07-02 Thread Sergey Kovalyov
May be so. But I want to find relevant workaround. Unfortunately, I have no possibility to switch the platform. On Tue, Jul 1, 2008 at 4:08 PM, valdhor [EMAIL PROTECTED] wrote: I don't use Flex 2.0.1 (I use Flex 3). I ran your app in Flex 3 and it works fine - ie. no exception is thrown.

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

2008-07-02 Thread Josh McDonald
You're right :) But still no exception, it works fine under HF1 and HF3. -Josh On Thu, Jul 3, 2008 at 2:51 AM, Sergey Kovalyov [EMAIL PROTECTED] wrote: May be so. But I want to find relevant workaround. Unfortunately, I have no possibility to switch the platform. On Tue, Jul 1, 2008 at

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

2008-07-01 Thread valdhor
I don't use Flex 2.0.1 (I use Flex 3). I ran your app in Flex 3 and it works fine - ie. no exception is thrown. Could this be a bug in Flex 2.0.1? --- In flexcoders@yahoogroups.com, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! When I add a new item to the tree node and then open this

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

2008-07-01 Thread Josh McDonald
I'm not getting an exception, tried in 2.0.1HF1 and HF3. I'm not getting any change on screen though. On Tue, Jul 1, 2008 at 11:08 PM, valdhor [EMAIL PROTECTED] wrote: I don't use Flex 2.0.1 (I use Flex 3). I ran your app in Flex 3 and it works fine - ie. no exception is thrown. Could this

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

2008-06-09 Thread xaero
I add an Alert.show, and delete the CALL function, like this: var atClass:Object = new Object(); atClass.atcls = ComboBox(event.target).selectedItem.data; Alert.show(atClass[atcls],ALERT); //gateway.call(cys.getStudents, new Responder(onResult, onFault), atClass); //line 51 It can show the data

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

2008-06-09 Thread Michael Schmalle
Is the gateway property defined? Other than that... from the code you have shown, I don't have a clue. ;-) Mike On Mon, Jun 9, 2008 at 9:39 AM, xaero [EMAIL PROTECTED] wrote: I add an Alert.show, and delete the CALL function, like this: var atClass:Object = new Object(); atClass.atcls =

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

2007-02-20 Thread Nate Pearson
Thank you Steve! --- In flexcoders@yahoogroups.com, Steve Cox [EMAIL PROTECTED] wrote: If (dataProvider[i].hasOwnProperty(someValue) dataProvider[i].someValue != null) { } HTH Steve -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

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

2007-02-19 Thread Steve Cox
If (dataProvider[i].hasOwnProperty(someValue) dataProvider[i].someValue != null) { } HTH Steve -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: 17 February 2007 00:48 To: flexcoders@yahoogroups.com Subject: [flexcoders]

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

2007-02-16 Thread Paul DeCoursey
if (dataprovider[i].someValue == null){ ... } --- In flexcoders@yahoogroups.com, napearson99 [EMAIL PROTECTED] wrote: 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

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

2007-02-16 Thread napearson99
What if the property.someValue does not exist? How do I check if the reference to dataprovider[i].someValue property is null? my dataprovider is an arraycollection and holds different objects. Some objects have .someValue property and some do not. When i try to step through it it doesn't like

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

2007-02-16 Thread Nate Pearson
Does anyone know? This would help me immensely. --- In flexcoders@yahoogroups.com, napearson99 [EMAIL PROTECTED] wrote: What if the property.someValue does not exist? How do I check if the reference to dataprovider[i].someValue property is null? my dataprovider is an arraycollection and

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

2007-02-16 Thread Gordon Smith
Some objects have .someValue property and some do not. It sounds like the objects in your dataProvider are instances of various non-dynamic classes, where some of the classes declare a someValue property and others don't. Is this correct? If so, you don't ant to write code like if

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

2007-01-25 Thread Roger Ross
THANK YOU.. its always nice to have another pair of eyes when dealing with this syntax!!! My current dev. tool is nothing like this... Roger --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: Is catalog misspelled? categories = event.result.catelog.category;