aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-18 19:43:07 +0000
committerwisberg <wisberg>2002-12-18 19:43:07 +0000
commit1043c35c0421c7b161440b5c36e7c9797cce9451 (patch)
tree6a07dab9c06286d7f462141d21d86111e5d6a12d
parent85da9d243140453d129f355b4ebfa7db15b5ac6b (diff)
downloadaspectj-1043c35c0421c7b161440b5c36e7c9797cce9451.tar.gz
aspectj-1043c35c0421c7b161440b5c36e7c9797cce9451.zip
avoid NPE when in strange state
-rw-r--r--build/src/org/aspectj/internal/tools/build/BuildSpec.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/BuildSpec.java b/build/src/org/aspectj/internal/tools/build/BuildSpec.java
index bf9ccdea8..f40ff6b06 100644
--- a/build/src/org/aspectj/internal/tools/build/BuildSpec.java
+++ b/build/src/org/aspectj/internal/tools/build/BuildSpec.java
@@ -153,8 +153,14 @@ public class BuildSpec {
public String toString() { // XXX better
if (null != productDir) {
return "product " + productDir.getName();
- } else {
+ } else if (null != moduleDir) {
return "module " + moduleDir.getName();
+ } else {
+ return "<bad BuildSpec - "
+ + " baseDir=" + baseDir
+ + " jarDir=" + jarDir
+ + " buildConfig=" + buildConfig
+ + ">";
}
}
}