From: aclement Date: Wed, 1 Sep 2010 15:00:33 +0000 (+0000) Subject: 324190 X-Git-Tag: V1_6_10RC1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03c43f5ca578273b8f94d5caf7b92718f84cd911;p=aspectj.git 324190 --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index ee6f8dd0a..5a63b5f0b 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -721,17 +721,19 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour File outputDir = (File) iterator.next(); outputDirsToAspects.put(outputDir, new ArrayList()); } - Set> entrySet = aspectNamesToFileNames.entrySet(); - for (Iterator> iterator = entrySet.iterator(); iterator.hasNext();) { - Map.Entry entry = iterator.next(); - String aspectName = entry.getKey(); - char[] fileName = entry.getValue(); - File outputDir = buildConfig.getCompilationResultDestinationManager().getOutputLocationForClass( - new File(new String(fileName))); - if (!outputDirsToAspects.containsKey(outputDir)) { - outputDirsToAspects.put(outputDir, new ArrayList()); + if (aspectNamesToFileNames != null) { + Set> entrySet = aspectNamesToFileNames.entrySet(); + for (Iterator> iterator = entrySet.iterator(); iterator.hasNext();) { + Map.Entry entry = iterator.next(); + String aspectName = entry.getKey(); + char[] fileName = entry.getValue(); + File outputDir = buildConfig.getCompilationResultDestinationManager().getOutputLocationForClass( + new File(new String(fileName))); + if (!outputDirsToAspects.containsKey(outputDir)) { + outputDirsToAspects.put(outputDir, new ArrayList()); + } + ((List) outputDirsToAspects.get(outputDir)).add(aspectName); } - ((List) outputDirsToAspects.get(outputDir)).add(aspectName); } } return outputDirsToAspects;