langtools/src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java
changeset 3373 d62556aed18c
parent 3145 5300990c95bd
child 3380 a6c2bcab0fec
--- a/langtools/src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java	Wed Jul 15 10:25:01 2009 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java	Wed Jul 15 17:01:47 2009 +0100
@@ -569,7 +569,8 @@
         @Override
         public Void visitMethodSymbol(MethodSymbol s, Void ignored) {
             visit(s.owner, null);
-            typePreprocessor.visit(s.type);
+            if (s.type != null)
+                typePreprocessor.visit(s.type);
             return null;
         }
     };