Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1072153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:49:00+00:00 2026-05-16T20:49:00+00:00

Every now and then I come across an exception being thrown by the Flex

  • 0

Every now and then I come across an exception being thrown by the Flex framework. Often from ListBase code that renders itemRenderers and such. I’m looking for techniques to use to figure out even which of my ListBase instances is even throwing the error.

The difficulty arises when the top of the call stack originates in a callLaterDispatcher()

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls.listClasses::ListBase/addToFreeItemRenderers()
    at mx.controls.listClasses::ListBase/reduceRows()
    at mx.controls.listClasses::ListBase/updateDisplayList()
    at mx.controls.listClasses::TileBase/updateDisplayList()
    at mx.controls.listClasses::ListBase/validateDisplayList()
    at mx.managers::LayoutManager/validateDisplayList()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()

In looking at a breakpoint in that I set in ListBase::addToFreeItemRenderers, I can see that the item is null that’s being passed to the function, as so:

protected function addToFreeItemRenderers(item:IListItemRenderer):void
{
    // The following item is NULL when the exception is being thrown...
    if (item == null) return;

    DisplayObject(item).visible = false;

    var factory:IFactory = factoryMap[item];    
...

How do I figure out what I need to figure out? I’ve solved similar issues before, but I had to use magic and voodoo and take guesses and throw in callLater calls in my code to fix.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:49:01+00:00Added an answer on May 16, 2026 at 8:49 pm

    I usually launch the app in debug mode. When the error occurs, debug mode should take over.

    In Debug mode you can:

    1. Look at the stack trace and drill back down to the component in question. In some cases, such as binding or collectionChange events this won’t help. As you discovered, callLater makes this difficult.

    2. Add a watch variable name or id which can tell you the component’s name, which you can them tie back to the location. If you are using the same name in multiple places, this might not be definitive, though.

    Beyond, when I come across errors like this; they are often due to something I did, and correcting that something fixes the error for good. However, it can be tough to figure out what the cause is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Every now and then I come across code like this: foo = Foo() ...
I come across the term 'decay' every now and then, for example when arrays
Every now and then (ahem...) my code crashes on some system; quite often, my
Every now and then I come across a problem with an old system one
Every now and then I come across the term flag in the context of
Every now and then, I bump into syntax that I've seen before, but never
Every now and then I receive a Word Document that I have to display
I’ve got a Heisenbug in my code. It only appears every now and then
What is this? This is a collection of questions that come up every now
I come from a python background, where it's often said that it's easier to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.