changeset 2420:4173877bdac9

Guard against NPE.
author wmdietl
date Sun, 14 Apr 2013 17:13:53 -0700
parents c64d48640dfa
children 3e6b55fce59a
files src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java	Sun Apr 14 15:16:09 2013 -0700
+++ b/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java	Sun Apr 14 17:13:53 2013 -0700
@@ -1160,7 +1160,7 @@
 
         @Override
         public void visitVarDef(final JCVariableDecl tree) {
-            if (sym.kind == Kinds.VAR) {
+            if (sym != null && sym.kind == Kinds.VAR) {
                 // Don't visit a parameter once when the sym is the method
                 // and once when the sym is the parameter.
                 scan(tree.mods);