Updated Branches:
  refs/heads/develop 06345202d -> 249b38b7c

Fix FLEX-33929 - NPE proxy.bitmapData is null on Android


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

Branch: refs/heads/develop
Commit: e566d3ecb1dbc4c34835a73bf13e4a682d06a39e
Parents: 0634520
Author: mamsellem <[email protected]>
Authored: Sat Nov 23 01:00:29 2013 +0100
Committer: mamsellem <[email protected]>
Committed: Sat Nov 23 01:00:29 2013 +0100

----------------------------------------------------------------------
 .../spark/components/supportClasses/ScrollableStageText.as  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e566d3ec/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
 
b/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
index 0c7e2cf..b09bb47 100644
--- 
a/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
+++ 
b/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
@@ -1554,7 +1554,14 @@ public class ScrollableStageText extends UIComponent  
implements IStyleableEdita
     /** Dispose the proxy resources once it has been removed from the stage */
     protected function disposeProxy():void
     {
-        Bitmap(proxy).bitmapData.dispose();
+
+        var bd: BitmapData = Bitmap(proxy).bitmapData;
+        if (bd)
+           bd.dispose();
+        else {
+            trace("[WARN] SST found empty bitmap data in:", debugId)  ;
+        }
+
     }
 
     /**

Reply via email to