Skip to main content
Participant
March 9, 2011
Question

RTE in TLF ContainerControl.as

  • March 9, 2011
  • 1 reply
  • 506 views

I have a project which uses a RichEditableText component with a textflow markup with some images (SWF). Sometimes, i'm not sure exactly what triggers this problem, I run into a null reference exception inside ContainerControl.as. This is where things go wrong starting from line 3178:

while (containerListIndex == -1 && floatIndex > 0)
                {
                    floatIndex--;
                    floatInfo = _composedFloats[floatIndex - 1];
                    containerListIndex = _floatsInContainer.indexOf(floatInfo.graphic);
                }

In the above scenario, floatInfo is null when the NRE happens.

For now I will just add some more logic to verify whether floatInfo== null.

I'm using the latest TLF framework classes (released in february 3 2011, with Flex SDK 4.5.0.19786)

This topic has been closed for replies.

1 reply

Adobe Employee
March 9, 2011

We have a bug on this -- at least its for a crash in the same spot:

http://bugs.adobe.com/jira/browse/SDK-29654

I'm not sure yet what's going on -- I haven't looked into this one yet.

Thanks for reporting -- that's much appreciated!

- robin

Participant
March 10, 2011

Thanks for pointing me to the bug report.

Regards