         super.commitProperties();
 
         var flowComposer:IFlowComposer = textFlow.flowComposer;
-        if (!flowComposer)
+        if (!flowComposer || flowComposer.numControllers == 0)
             return;
-
+        
         var containerController:IContainerController =
             flowComposer.getControllerAt(0);
 

        if (textChanged || contentChanged || stylesChanged)
        {
            // Eliminate detritus from the previous TextFlow.
            if (textFlow && textFlow.flowComposer)
                textFlow.flowComposer.removeControllerAt(0);
            
            // If the text was changed, clear the selection.
            if (textChanged || contentChanged)

        
    //--------------------------------------------------------------------------
    //
    //  Class variables
    //
    //--------------------------------------------------------------------------

    /**
     *  @private
     *  Used for determining whitespace processing during import.
     */
    private static var staticCharacterFormat:CharacterFormat =
        new CharacterFormat();
    
    /**
     *  @private
     *  Used for determining whitespace processing during import.
     */
    private static var staticConfiguration:Configuration =
        new Configuration();
    
    /**
     *  @private
     *  Used for determining whitespace processing during import.
     */
    private static var staticImportExportConfiguration:ImportExportConfiguration;

    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------
