aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-08-08 13:48:32 +0000
committeraclement <aclement>2006-08-08 13:48:32 +0000
commita38edd39a8e998a22b41a0cf1928493aa0755e65 (patch)
tree0198d976437e5971abfc7ebe50108d37d8a3e94c
parent282188781fc2c342ad12bd4173aee139befa0da1 (diff)
downloadaspectj-a38edd39a8e998a22b41a0cf1928493aa0755e65.tar.gz
aspectj-a38edd39a8e998a22b41a0cf1928493aa0755e65.zip
fix for 152388
-rw-r--r--bridge/src/org/aspectj/bridge/MessageUtil.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/bridge/src/org/aspectj/bridge/MessageUtil.java b/bridge/src/org/aspectj/bridge/MessageUtil.java
index 0dc82172f..1b75c0041 100644
--- a/bridge/src/org/aspectj/bridge/MessageUtil.java
+++ b/bridge/src/org/aspectj/bridge/MessageUtil.java
@@ -803,9 +803,11 @@ public class MessageUtil {
writer.println(baseMessage);
for (Iterator iter = message.getExtraSourceLocations().iterator(); iter.hasNext();) {
ISourceLocation element = (ISourceLocation) iter.next();
- writer.print("\tsee also: " + element.toString());
- if (iter.hasNext()) {
- writer.println();
+ if (element!=null) {
+ writer.print("\tsee also: " + element.toString());
+ if (iter.hasNext()) {
+ writer.println();
+ }
}
}
try { buf.close(); }