You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2017/09/06 22:17:21 UTC

[8/8] git commit: [flex-falcon] [refs/heads/feature/amf] - impls can be null

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/feature/amf
Commit: 2af5714e406e125f6276759a28ea86e432462825
Parents: a9e09f4
Author: Alex Harui <ah...@apache.org>
Authored: Thu Aug 31 21:11:05 2017 -0700
Committer: Alex Harui <ah...@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;
 				}