As far as I can tell, this is what is happening:

"states" is a property of ViewBase and the property is being set very
quickly upon application load. The states setter function is assuming
there is a valuesImpl loaded into the ValuesManager, but that's not the
case because the Application's initHandler hasn't been called yet and it
is there that valuesImpl is set in the ValuesManager.

Not sure yet how to deal with this, but I will work on it.

--peter

On 9/19/13 12:09 PM, "Alex Harui" <aha...@adobe.com> wrote:

>I'll let you do the digging, but make sure the capitalization is right,
>and that it is using the same ValuesImpl as DataBindingTest.
>
>On 9/19/13 9:02 AM, "Peter Ent" <p...@adobe.com> wrote:
>
>>I'm not making any headway on this. There is a global style declaration
>>which should associate a state implementation with any class:
>>
>>global
>>{
>>    iStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl");
>>}
>>
>>
>>I don't know why this isn't being picked up. I'm going to try
>>DataBindingTest and see how that goes.
>>--peter
>>
>>On 9/19/13 11:12 AM, "Peter Ent" <p...@adobe.com> wrote:
>>
>>>I am looking into this.
>>>--peter
>>>
>>>On 9/19/13 1:03 AM, "Alex Harui" <aha...@adobe.com> wrote:
>>>
>>>>I haven't tried StatesTest in a while.  Can you work with
>>>>DataBindingTest
>>>>instead?  It should have everything StatesTest has and more.
>>>>
>>>>-Alex
>>>>
>>>>On 9/18/13 9:58 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
>>>>
>>>>>I picked this project up [1] after a while and when I run the app, I
>>>>>am
>>>>>getting this RTE:
>>>>>
>>>>>TypeError: Error #1009: Cannot access a property or method of a null
>>>>>object
>>>>>reference.
>>>>>    at org.apache.flex.core::ViewBase/set
>>>>>states()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\s
>>>>>r
>>>>>c
>>>>>\
>>>>>o
>>>>>rg\apache\flex\core\ViewBase.as:83]
>>>>>    at
>>>>>MyInitialView()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples
>>>>>\
>>>>>S
>>>>>t
>>>>>a
>>>>>tesTest\src\MyInitialView.mxml:23]
>>>>>    at StatesTest/_StatesTest_MyInitialView1_c()
>>>>>    at
>>>>>StatesTest()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\St
>>>>>a
>>>>>t
>>>>>e
>>>>>s
>>>>>Test\src\StatesTest.mxml:26]
>>>>>
>>>>>I resynced recently and I am guessing some recent changes break this
>>>>>app.
>>>>>When I step through the debugger, it looks like
>>>>>ValuesManager.valuesImpl
>>>>>is
>>>>>returning null.
>>>>>
>>>>>Alex/Peter, can one of you please take a look?
>>>>>
>>>>>Thanks,
>>>>>Om
>>>>>
>>>>>[1] 
>>>>>https://fisheye6.atlassian.com/browse/flex-asjs/examples/StatesTest
>>>>
>>>
>>
>

Reply via email to