提交 ff5abc87 编写于 作者: K kohsuke

When a SCM plugin is uninstalled, projects using it should fall back to "No SCM".

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17300 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b9d8b1af
......@@ -195,6 +195,8 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
triggers = new Vector<Trigger<?>>();
for (Trigger t : triggers)
t.start(this,false);
if(scm==null)
scm = new NullSCM(); // perhaps it was pointing to a plugin that no longer exists.
if(transientActions==null)
transientActions = new Vector<Action>(); // happens when loaded from disk
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册