You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ft...@apache.org on 2015/06/02 14:42:23 UTC
[16/35] git commit: [flex-falcon] [refs/heads/IDEA-FLEX_JS_COMPILER]
- Add null check
Add null check
Signed-off-by: Erik de Bruin <er...@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/IDEA-FLEX_JS_COMPILER
Commit: fcbdf11dd75b8cfc14ce337efa4c89ea1883a4b7
Parents: cfc1a33
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Mon Feb 16 12:52:44 2015 +0100
Committer: Frédéric THOMAS <we...@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);