提交 0d7781d3 编写于 作者: K kohsuke

adding error check


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7661 71c3de6d-444a-0410-be80-ed276b4c234a
上级 550da91d
......@@ -54,6 +54,7 @@ public abstract class Actionable extends AbstractModelObject {
* Short for <tt>getActions().add(a)</tt>
*/
public void addAction(Action a) {
if(a==null) throw new IllegalArgumentException();
getActions().add(a);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册