diff options
author | aclement <aclement> | 2007-10-26 14:13:14 +0000 |
---|---|---|
committer | aclement <aclement> | 2007-10-26 14:13:14 +0000 |
commit | 427211607630ca82f9f68c990cbf372aefe5b587 (patch) | |
tree | f1f20a564c2ae3c82dd8aac6350bebced5b09a50 /build | |
parent | de82913f07bf9f05ccc20167bd5c31bf49c71d56 (diff) | |
download | aspectj-427211607630ca82f9f68c990cbf372aefe5b587.tar.gz aspectj-427211607630ca82f9f68c990cbf372aefe5b587.zip |
fix for 205949: "Unattended install of aspectj builds on the Mac fails". just had to cope with a null graphical component.
Diffstat (limited to 'build')
-rw-r--r-- | build/src/$installer$/org/aspectj/Main.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/src/$installer$/org/aspectj/Main.java b/build/src/$installer$/org/aspectj/Main.java index 147a88fd3..d601b1687 100644 --- a/build/src/$installer$/org/aspectj/Main.java +++ b/build/src/$installer$/org/aspectj/Main.java @@ -845,7 +845,7 @@ abstract class WizardPane { buf.append(text.substring(lastIndex, startIndex)); String key = text.substring(startIndex+2, endIndex); lastIndex = endIndex+1; - Object replaceText = map.get(key); + Object replaceText = (map==null?null:map.get(key)); //System.out.println("key: " + key + " -> " + replaceText); if (replaceText == null) replaceText = "NOT_FOUND"; buf.append(replaceText.toString()); @@ -856,7 +856,7 @@ abstract class WizardPane { } public static String applyProperties(String text) { - return applyProperties(text, context.getProperties()); + return applyProperties(text, (context==null?null:context.getProperties())); } protected String loadText(String filename) { |