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 <[email protected]>
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
[email protected].

Reply via email to