aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-24 10:42:34 +0000
committeracolyer <acolyer>2005-11-24 10:42:34 +0000
commit3b110f784434ac9309dc0e37682335f751af7cc3 (patch)
treed5986a7c46cd584e0fb3e9e54537759b5310055a
parent76d7e83c7fdce7555ce9d9c6ca5bfaaf31d234db (diff)
downloadaspectj-3b110f784434ac9309dc0e37682335f751af7cc3.tar.gz
aspectj-3b110f784434ac9309dc0e37682335f751af7cc3.zip
try this version instead...
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java
index 6a7b7dabb..4e9c5552e 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java
@@ -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;
}