When loading my flex viewer 3.1 compiled version, it will sometimes stop loading halfway through and become unresponsive (map will load, but not all header elements/widgets in widget container appear). If I reload the page, it comes up as expected and functions normally.When the problem occurs, content debugger reveals this:TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem/createChildren() at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem() at com.esri.viewer.components.toc::TOC/registerMapLayer() at MethodInfo-389() at com.esri.viewer.components.toc.utils::MapUtil$/forEachMapLayer() at com.esri.viewer.components.toc::TOC/registerAllMapLayers() at com.esri.viewer.components.toc::TOC/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Has anyone experienced this problem? Know of a solution? The fact that everything works fine after reloading confuses me. Thanks for the help!