diff options
author | wisberg <wisberg> | 2002-12-18 19:43:07 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-18 19:43:07 +0000 |
commit | 1043c35c0421c7b161440b5c36e7c9797cce9451 (patch) | |
tree | 6a07dab9c06286d7f462141d21d86111e5d6a12d | |
parent | 85da9d243140453d129f355b4ebfa7db15b5ac6b (diff) | |
download | aspectj-1043c35c0421c7b161440b5c36e7c9797cce9451.tar.gz aspectj-1043c35c0421c7b161440b5c36e7c9797cce9451.zip |
avoid NPE when in strange state
-rw-r--r-- | build/src/org/aspectj/internal/tools/build/BuildSpec.java | 8 |
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 + + ">"; } } } |