]> source.dussan.org Git - aspectj.git/commitdiff
fix for 152388
authoraclement <aclement>
Tue, 8 Aug 2006 13:48:32 +0000 (13:48 +0000)
committeraclement <aclement>
Tue, 8 Aug 2006 13:48:32 +0000 (13:48 +0000)
bridge/src/org/aspectj/bridge/MessageUtil.java

index 0dc82172f4dee8fa0faba3954d6a8a80fd4103af..1b75c00411b957aca8a717a890c6d4197c9154ac 100644 (file)
@@ -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(); }