[JENKINS-60816] Missing null check when traversing type hierarchy of interfaces

This commit is contained in:
Jesse Glick committed 2020-01-21 15:53:19 -05:00
1 parent 5a7af03c5b
commit 17c4c35813
2 files changed
+18 -1

No files matched your search

@@ -497,7 +497,7 @@ public abstract class ExtensionFinder implements ExtensionPoint {
m.setAccessible(true);
m.invoke(ecl, c);
}
for (Class cc = c; cc != Object.class; cc = cc.getSuperclass()) {
for (Class<?> cc = c; cc != Object.class && cc != null; cc = cc.getSuperclass()) {
/**
* See {@link com.google.inject.spi.InjectionPoint#getInjectionPoints(TypeLiteral, boolean, Errors)}
*/