File tree Expand file tree Collapse file tree
java-frontend/src/main/java/org/sonar/java/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import java .util .Collection ;
3535import java .util .Collections ;
3636import java .util .List ;
37- import java .util .Objects ;
3837import java .util .stream .Collectors ;
3938
4039final class JTypeSymbol extends JSymbol implements Symbol .TypeSymbol {
@@ -109,7 +108,8 @@ public Type superClass() {
109108 @ CheckForNull
110109 private Type convertSuperClass () {
111110 if (typeBinding ().isInterface () || typeBinding ().isArray ()) {
112- return sema .type (Objects .requireNonNull (sema .resolveType ("java.lang.Object" )));
111+ ITypeBinding objectBinding = sema .resolveType ("java.lang.Object" );
112+ return objectBinding != null ? sema .type (objectBinding ) : Type .UNKNOWN ;
113113 } else if (typeBinding ().getSuperclass () == null ) {
114114 // java.lang.Object
115115 return null ;
You can’t perform that action at this time.
0 commit comments