ok to follow up.
in the initListData function it is the first line after the first call to
getStyle (after the call to getDisplayDisclosureIcon).
the offending line(s) was in my css, added by somebody else in ignorance. :(
folderOpenIcon: null;
disclosureOpenIcon: null;
anyway, obviously getStyle returned a null bla bla. less black box debugging
would have made this much easier :(
and commenting it out solved the problem. will report later
On Fri, Feb 13, 2009 at 11:24 AM, Johannes Nel <[email protected]>wrote:
> hey,
> actually hoping someone from the adg team can tell me what on a certain
> line would be giving an error.
>
> I use sdk 3.0
>
> so i have an adg which renderers another adg. detail is not really that
> important. i have a mock data set in 2 different projects (1 being the main
> app i am working on and the other being an adg sample to try and replicate
> my error).
>
> the sample app uses the same IFactory, ADGRenderer, columns, hierachial
> data descriptor (and of course the mock data set).
>
> the error i get is
> TypeError: Error #1034: Type Coercion failed: cannot convert "null" to
> Class.
> at
> mx.controls::AdvancedDataGrid/initListData()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5476]
>
> I am specifically interested in what is on that one line, since my sample
> app works perfectly and my main app does not. I realise that this means its
> somehting in my own code (the difference between the two apps is complexity
> of the application structure.)
>
> my sample app consists of
>
> view
> - presmodel
> - my adg component
>
> where my presentation model exposes via bindings my columns, data provider
> and renderer
>
> in contrast to this my main app is
>
> view
> -presModel
> -component
> -presModel
> -my adg component.
>
> i think this means that some binding is not firing all the way through my
> chains, but which one (i cannot figure this since i cannot debug the adg :(
> )
>
> anyway, whats on that line, and what variable is null.
>
> (as a side note, i have overridden this function (and several in that chain
> to inspect them and I do not see arguments being passed as null, so I assume
> its some type of class variable or a property on one of the objects which is
> null)
>
> thanks
> Johan
> --
> j:pn
> \\no comment
>
--
j:pn
\\no comment