changeset 56920:17909be32d4f records-and-sealed

fixing NPE on visitLambda
author vromero
date Tue, 09 Jul 2019 11:56:14 -0400
parents 180ed622d987
children 7ffd78ba1db0 7c3537750620
files src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java	Mon Jul 08 20:36:28 2019 -0400
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java	Tue Jul 09 11:56:14 2019 -0400
@@ -2672,7 +2672,7 @@
             Type currentTarget = targetInfo.target;
             Type lambdaType = targetInfo.descriptor;
 
-            if (((ClassSymbol)currentTarget.tsym).isSealed()) {
+            if (currentTarget.tsym != null && ((ClassSymbol)currentTarget.tsym).isSealed()) {
                 log.error(that, Errors.CantInheritFromSealed(currentTarget.tsym));
             }