Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ private SortedMap<Long, List<Diagnostic<? extends JavaFileObject>>> treeDiags(Tr
public Void visitNewClass(NewClassTree node, Void p) {
//TODO: fix constructors:
JCNewClass nc = (JCNewClass) node;
if (node.getClassBody() != null && !nc.clazz.type.hasTag(TypeTag.ERROR)) {
if (node.getClassBody() != null && nc.clazz.type != null && !nc.clazz.type.hasTag(TypeTag.ERROR)) {
if (nc.constructor.kind == Kind.MTH) {
//make sure this class is generated even if the code is erroneous:
anonymousClasses.add(nc);
Expand Down