flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [20/42] git commit: [flex-falcon] [refs/heads/develop] - Add null check
Date Thu, 04 Jun 2015 06:06:26 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/fcbdf11d
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/fcbdf11d
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/fcbdf11d

Branch: refs/heads/develop
Commit: fcbdf11dd75b8cfc14ce337efa4c89ea1883a4b7
Parents: cfc1a33
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Mon Feb 16 12:52:44 2015 +0100
Committer: Frédéric THOMAS <webdoublefx@gmail.com>
Committed: Tue Jun 2 13:40:43 2015 +0100

----------------------------------------------------------------------
 .../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/fcbdf11d/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