提交 df259d7a 编写于 作者: K Kohsuke Kawaguchi

fixing NPE. getUrlName() contract allows returning null.

上级 87f501ce
......@@ -454,9 +454,12 @@ public abstract class View extends AbstractModelObject implements AccessControll
}
public Object getDynamic(String token) {
for (Action a : getActions())
for (Action a : getActions()) {
String url = a.getUrlName();
if (url==null) continue;
if(a.getUrlName().equals(token))
return a;
}
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册