null gets passed in when reverting states

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9c903733
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9c903733
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9c903733

Branch: refs/heads/develop
Commit: 9c903733cec25ade22030bb87442d9a540893984
Parents: d3be22d
Author: Alex Harui <[email protected]>
Authored: Wed Oct 29 10:30:29 2014 -0700
Committer: Alex Harui <[email protected]>
Committed: Wed Oct 29 11:15:44 2014 -0700

----------------------------------------------------------------------
 .../FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c903733/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
 
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
index d53b3c1..eaf2cf4 100644
--- 
a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
+++ 
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
@@ -86,6 +86,8 @@ package org.apache.flex.html.beads.models
          */
                public function set text(value:String):void
                {
+            if (value == null)
+                value = "";
                        if (value != _text)
                        {
                                _text = value;

Reply via email to