Repository: flex-tlf
Updated Branches:
  refs/heads/tables b408e2fb5 -> 84e8b25b2


Added check for valid terminator span after replacement


Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/84e8b25b
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/84e8b25b
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/84e8b25b

Branch: refs/heads/tables
Commit: 84e8b25b22a56e015c81f91e091e875c5f00bc71
Parents: b408e2f
Author: Harbs <[email protected]>
Authored: Thu Oct 30 23:34:54 2014 +0200
Committer: Harbs <[email protected]>
Committed: Thu Oct 30 23:34:54 2014 +0200

----------------------------------------------------------------------
 textLayout/src/flashx/textLayout/elements/ParagraphElement.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/84e8b25b/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/elements/ParagraphElement.as 
b/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
index 6527d7c..4ddd7c4 100644
--- a/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
+++ b/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
@@ -653,7 +653,7 @@ package flashx.textLayout.elements
                                }
                        }
                        //merge terminator span to previous if possible
-                       if(_terminatorSpan.textLength == 1)
+                       if(_terminatorSpan && _terminatorSpan.textLength == 1)
                        {
                                var prev:FlowLeafElement = 
_terminatorSpan.getPreviousLeaf(this);
                                if(prev && prev is SpanElement)

Reply via email to