Skip to content

Commit

Permalink
Fixes test0464 - check for null type
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 28, 2024
1 parent dd8a9f6 commit 7fa82b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import com.sun.tools.javac.code.Type;
import com.sun.tools.javac.code.Type.ArrayType;
import com.sun.tools.javac.code.Type.ClassType;
import com.sun.tools.javac.code.Type.ErrorType;
import com.sun.tools.javac.code.Type.JCVoidType;
import com.sun.tools.javac.code.Type.PackageType;
import com.sun.tools.javac.code.Type.TypeVar;
Expand Down Expand Up @@ -621,7 +622,7 @@ public boolean isNested() {

@Override
public boolean isNullType() {
return this.type instanceof NullType;
return this.type instanceof NullType || (this.type instanceof ErrorType et && et.getOriginalType() instanceof NullType);
}

@Override
Expand Down

0 comments on commit 7fa82b0

Please sign in to comment.