]> source.dussan.org Git - aspectj.git/commitdiff
try this version instead...
authoracolyer <acolyer>
Thu, 24 Nov 2005 10:42:34 +0000 (10:42 +0000)
committeracolyer <acolyer>
Thu, 24 Nov 2005 10:42:34 +0000 (10:42 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java

index 6a7b7dabb146162d9102c70699e6225808531c4f..4e9c5552e2a138ce1a208779fab2397d7a6abf11 100644 (file)
@@ -265,7 +265,11 @@ public class AjState {
        private boolean changed(List oldPath, List newPath, boolean checkClassFiles, File oldOutputLocation) {
                if (oldPath == null) oldPath = new ArrayList();
                if (newPath == null) newPath = new ArrayList();
-               try {oldOutputLocation = oldOutputLocation.getCanonicalFile();} catch(IOException ex) { /* we did our best...*/ }
+               try {
+                       if (oldOutputLocation != null) {
+                               oldOutputLocation = oldOutputLocation.getCanonicalFile();
+                       }
+               } catch(IOException ex) { /* we did our best...*/ }
                if (oldPath.size() != newPath.size()) {
                        return true;
                }