From a38edd39a8e998a22b41a0cf1928493aa0755e65 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 8 Aug 2006 13:48:32 +0000 Subject: [PATCH] fix for 152388 --- bridge/src/org/aspectj/bridge/MessageUtil.java | 8 +++++--- 1 file 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(); } -- 2.39.5