]> source.dussan.org Git - aspectj.git/commitdiff
dont NPE for blank output folder (160167)
authoraclement <aclement>
Mon, 9 Oct 2006 12:28:29 +0000 (12:28 +0000)
committeraclement <aclement>
Mon, 9 Oct 2006 12:28:29 +0000 (12:28 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index 79215b62c15467596505660e155073af21a628c3..92a73974b17aacb432f083022587b9317a461687 100644 (file)
@@ -328,10 +328,8 @@ public class AjBuildManager implements IOutputClassFileNameProvider,IBinarySourc
             
             // for bug 113554: support ajsym file generation for command line builds
             if (buildConfig.isGenerateCrossRefsMode()) {
-                String configFileProxy = buildConfig.getOutputDir().getAbsolutePath() 
-                       + File.separator 
-                       + CROSSREFS_FILE_NAME; 
-               AsmManager.getDefault().writeStructureModel(configFileProxy);
+                  File configFileProxy = new File(buildConfig.getOutputDir(),CROSSREFS_FILE_NAME);
+                  AsmManager.getDefault().writeStructureModel(configFileProxy.getAbsolutePath());
             }
             
             // have to tell state we succeeded or next is not incremental