flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [07/11] git commit: [flex-falcon] [refs/heads/develop] - Add null check
Date Tue, 16 Sep 2014 14:01:59 GMT
Add null check

Prevents exception from being thrown when running full SDK through FalconJX. Check with compiler/SDK
guru's about root cause for exception.

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/55e000f6
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/55e000f6
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/55e000f6

Branch: refs/heads/develop
Commit: 55e000f6eddeb01faa2100a3aefb6618a55856b8
Parents: 1a7c183
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Tue Sep 16 14:01:18 2014 +0200
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Tue Sep 16 14:01:18 2014 +0200

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/55e000f6/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
b/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
index 610a644..04b98ef 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
@@ -101,6 +101,10 @@ public class ASNodeSwitch implements IASNodeStrategy
     @Override
     public void handle(IASNode node)
     {
+    	// ToDo (erikdebruin): add VF2JS conditional -> only use check during full SDK compilation
+        if (node == null)
+            return;
+
         // TODO (mschmalle) Still working on the switch, its complication in the expressions
         switch (node.getNodeID())
         {


Mime
View raw message