From 1043c35c0421c7b161440b5c36e7c9797cce9451 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 18 Dec 2002 19:43:07 +0000 Subject: [PATCH] avoid NPE when in strange state --- build/src/org/aspectj/internal/tools/build/BuildSpec.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ""; } } } -- 2.39.5