]> source.dussan.org Git - aspectj.git/commitdiff
324190
authoraclement <aclement>
Wed, 1 Sep 2010 15:00:33 +0000 (15:00 +0000)
committeraclement <aclement>
Wed, 1 Sep 2010 15:00:33 +0000 (15:00 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index ee6f8dd0a2e76eeb923ee76d5e35798647ec6db5..5a63b5f0b6f72b2026a8e99aa73e0572f4912f9b 100644 (file)
@@ -721,17 +721,19 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                                File outputDir = (File) iterator.next();
                                outputDirsToAspects.put(outputDir, new ArrayList<String>());
                        }
-                       Set<Map.Entry<String, char[]>> entrySet = aspectNamesToFileNames.entrySet();
-                       for (Iterator<Map.Entry<String, char[]>> iterator = entrySet.iterator(); iterator.hasNext();) {
-                               Map.Entry<String, char[]> 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<String>());
+                       if (aspectNamesToFileNames != null) {
+                               Set<Map.Entry<String, char[]>> entrySet = aspectNamesToFileNames.entrySet();
+                               for (Iterator<Map.Entry<String, char[]>> iterator = entrySet.iterator(); iterator.hasNext();) {
+                                       Map.Entry<String, char[]> 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<String>());
+                                       }
+                                       ((List) outputDirsToAspects.get(outputDir)).add(aspectName);
                                }
-                               ((List) outputDirsToAspects.get(outputDir)).add(aspectName);
                        }
                }
                return outputDirsToAspects;