提交 7f4dc667 编写于 作者: K Kohsuke Kawaguchi

null check useful in case this.clazz is an interface

上级 1ed7733f
......@@ -667,7 +667,7 @@ public abstract class Descriptor<T extends Describable<T>> implements Saveable {
}
private String getViewPage(Class<?> clazz, String pageName, String defaultValue) {
while(clazz!=Object.class) {
while(clazz!=Object.class && clazz!=null) {
String name = clazz.getName().replace('.', '/').replace('$', '/') + "/" + pageName;
if(clazz.getClassLoader().getResource(name)!=null)
return '/'+name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册