flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [05/11] git commit: [flex-falcon] [refs/heads/develop] - Add null check
Date Tue, 16 Sep 2014 14:01:57 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/113443c9
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/113443c9
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/113443c9

Branch: refs/heads/develop
Commit: 113443c9ad6576ca5ae76762116e4f1b8964bcf6
Parents: 84d92ad
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Tue Sep 16 13:48:42 2014 +0200
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Tue Sep 16 13:48:42 2014 +0200

----------------------------------------------------------------------
 .../compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/113443c9/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index 10456c7..e31727c 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -1151,6 +1151,10 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
         IFunctionDefinition definition = node.getDefinition();
         ITypeDefinition type = (ITypeDefinition) definition.getParent();
 
+        // ToDo (erikdebruin): add VF2JS conditional -> only use check during full SDK
compilation
+        if (type == null)
+            return;
+        
         if (project == null)
             project = getWalker().getProject();
 


Mime
View raw message