From 3b110f784434ac9309dc0e37682335f751af7cc3 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 24 Nov 2005 10:42:34 +0000 Subject: [PATCH] try this version instead... --- .../src/org/aspectj/ajdt/internal/core/builder/AjState.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.39.5