flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/2] git commit: [flex-falcon] [refs/heads/develop] - impls can be null
Date Fri, 01 Sep 2017 04:11:51 GMT
impls can be null


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

Branch: refs/heads/develop
Commit: 2af5714e406e125f6276759a28ea86e432462825
Parents: a9e09f4
Author: Alex Harui <aharui@apache.org>
Authored: Thu Aug 31 21:11:05 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Aug 31 21:11:05 2017 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/graph/GoogDepsWriter.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2af5714e/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
index 9ada634..c306e13 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
@@ -155,10 +155,13 @@ public class GoogDepsWriter {
 			{
 				if (gd.className.equals(mainName)) 
 				{
-					for (String d : gd.fileInfo.impls)
+					if (gd.fileInfo.impls != null)
 					{
-						if (!restOfDeps.contains(d))
-							restOfDeps.add(d);
+						for (String d : gd.fileInfo.impls)
+						{
+							if (!restOfDeps.contains(d))
+								restOfDeps.add(d);
+						}
 					}
 					continue;
 				}


Mime
View raw message