0 Replies Latest reply on Jul 25, 2007 8:30 AM by salruo

    Probable bug in tree

    salruo
      Hi everybody,
      i'm experimenting a quite frustrating behaviour in tree control.

      When i close a branch node "A" (isBranch = true) clicking on the disclosure icon, and "A" contains anothe branch "B" open but empty it raise a Null reference exception (sorry for the italian messages) :

      TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
      at mx.controls::Tree/mx.controls:Tree::getOpenChildrenStack()[E:\dev\flex_201_borneo\sdk\fra meworks;mx\controls;Tree.as:2404]
      at mx.controls::Tree/mx.controls:Tree::getOpenChildrenStack()[E:\dev\flex_201_borneo\sdk\fra meworks;mx\controls;Tree.as:2411]
      at mx.controls::Tree/mx.controls:Tree::getOpenChildrenStack()[E:\dev\flex_201_borneo\sdk\fra meworks;mx\controls;Tree.as:2411]
      at mx.controls::Tree/mx.controls:Tree::buildUpCollectionEvents()[E:\dev\flex_201_borneo\sdk\ frameworks;mx\controls;Tree.as:2192]
      at mx.controls::Tree/ http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()[E:\dev\flex_201_borneo\sdk\framew orks;mx\controls;Tree.as:2017
      at mx.effects::Tween/endTween()[E:\dev\flex_201_borneo\sdk\frameworks;mx\effects;Tween.as:51 0]
      at mx.controls::Tree/mx.controls:Tree::updateDisplayList()[E:\dev\flex_201_borneo\sdk\framew orks;mx\controls;Tree.as:1026]
      at mx.core::UIComponent/validateDisplayList()[E:\dev\flex_201_borneo\sdk\frameworks;mx\core; UIComponent.as:5826]
      at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[E:\dev\flex_2 01_borneo\sdk\frameworks;mx\managers;LayoutManager.as:600]
      at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[E:\dev\flex _201_borneo\sdk\frameworks;mx\managers;LayoutManager.as:673]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[E:\dev\flex_201_borneo\s dk\frameworks;mx\core;UIComponent.as:7975]
      at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[E:\dev\flex_201_borneo\sd k\frameworks;mx\core;UIComponent.as:7918]
      at [renderEvent]
      at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
      at flash.utils::Timer/flash.utils:Timer::tick()


      This happens systematically and can be easily reproducible. My Flex compiler version is 3.0 build 172357 running on Flex Builder 3.0 Moxie.

      Is it a bug ? is there any workaround available ?

      Thanks in advance,
      Salvatore