src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
changeset 5962 0911c6d1f671
parent 5958 b5d5effa0977
     1.1 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java	Fri Aug 11 10:54:10 2017 +0200
     1.2 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java	Fri Sep 22 13:10:06 2017 +0200
     1.3 @@ -3722,7 +3722,7 @@
     1.4              if (!imp.staticImport && TreeInfo.name(imp.qualid) == names.asterisk
     1.5                      && ((JCFieldAccess)imp.qualid).selected.type != null) {
     1.6                  TypeSymbol tsym = ((JCFieldAccess)imp.qualid).selected.type.tsym;
     1.7 -                if (toplevel.modle.visiblePackages != null) {
     1.8 +                if (toplevel.modle != null && toplevel.modle.visiblePackages != null) {
     1.9                      //TODO - unclear: selects like javax.* will get resolved from the current module
    1.10                      //(as javax is not an exported package from any module). And as javax in the current
    1.11                      //module typically does not contain any classes or subpackages, we need to go through