From: acolyer Date: Thu, 24 Nov 2005 10:42:34 +0000 (+0000) Subject: try this version instead... X-Git-Tag: V1_5_0RC1~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b110f784434ac9309dc0e37682335f751af7cc3;p=aspectj.git try this version instead... --- 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; }