You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/03/19 00:26:15 UTC
[royale-compiler] branch develop updated: handle files not on
sourcepath
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 82a5935 handle files not on sourcepath
82a5935 is described below
commit 82a59355d817c02b035feee4495ce2f02c046a40
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Mar 18 17:26:08 2018 -0700
handle files not on sourcepath
---
.../apache/royale/compiler/internal/projects/SourceListManager.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/projects/SourceListManager.java b/compiler/src/main/java/org/apache/royale/compiler/internal/projects/SourceListManager.java
index a42555a..cf881ea 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/projects/SourceListManager.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/projects/SourceListManager.java
@@ -125,7 +125,9 @@ final class SourceListManager
for (File file : newSourcesToCreate)
{
File sourcePath = sourcePathManager.getSourcePath(file);
- String qname = sourcePathManager.computeQName(sourcePath, file);
+ String qname = null;
+ if (sourcePath != null)
+ qname = SourcePathManager.computeQName(sourcePath, file);
ICompilationUnit unit = project.getSourceCompilationUnitFactory().createCompilationUnit(
file, DefinitionPriority.BasePriority.SOURCE_LIST, 0, qname, null);
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.