From 03c43f5ca578273b8f94d5caf7b92718f84cd911 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 1 Sep 2010 15:00:33 +0000 Subject: [PATCH] 324190 --- .../internal/core/builder/AjBuildManager.java | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) 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; -- 2.39.5