flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [2/5] git commit: [flex-falcon] [refs/heads/develop] - Add null check
Date Sun, 31 May 2015 17:40:46 GMT
Add null check

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 06cbaf4a4b6a953c34f253fedcb97f64fc7f23ee
Parents: a388b19
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Mon Feb 16 12:52:44 2015 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Sun May 31 19:40:30 2015 +0200

----------------------------------------------------------------------
 .../internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java       | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/06cbaf4a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
index d18f626..209916a 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
@@ -1391,10 +1391,13 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
     public void emitComponent(IMXMLComponentNode node)
     {
         MXMLVF2JSDescriptorSpecifier ps = getCurrentDescriptor("ps");
-        ps.value = "new mx.core.ClassFactory(";
+        if (ps != null) 
+        {
+        	ps.value = "new mx.core.ClassFactory(";
 
-        ps.value += node.getName();
-        ps.value += ")";
+	        ps.value += node.getName();
+	        ps.value += ")";
+        }
         
         setBufferWrite(true);
         emitSubDocument(node);


Mime
View raw message