summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author8nevil82011-11-28 05:42:18 (EST)
committer Winston Prakash2011-12-01 20:47:39 (EST)
commit48890fa8933ae64aea6cd1d422f3c4cf11b47cb2 (patch)
tree2f18a847e12668cb4b29fd22a17ac5df096d66e0
parentde9a777e15fc76331b863c2ba4d8fcff29a9ee39 (diff)
downloadorg.eclipse.hudson.core-48890fa8933ae64aea6cd1d422f3c4cf11b47cb2.zip
org.eclipse.hudson.core-48890fa8933ae64aea6cd1d422f3c4cf11b47cb2.tar.gz
org.eclipse.hudson.core-48890fa8933ae64aea6cd1d422f3c4cf11b47cb2.tar.bz2
Resolve Hudson-9077 (Jelly exception running Build now on a project from the homepage after upgrade to 2.2.0 from 2.1.0)
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/Job.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/hudson-core/src/main/java/hudson/model/Job.java b/hudson-core/src/main/java/hudson/model/Job.java
index c2da67a..853312c 100644
--- a/hudson-core/src/main/java/hudson/model/Job.java
+++ b/hudson-core/src/main/java/hudson/model/Job.java
@@ -366,13 +366,13 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
if (properties == null) // didn't exist < 1.72
properties = new CopyOnWriteList<JobProperty<? super JobT>>();
- for (JobProperty p : properties)
- p.setOwner(this);
-
if(cascadingChildrenNames == null){
cascadingChildrenNames = new CopyOnWriteArraySet<String>();
}
buildProjectProperties();
+ for (JobProperty p : getAllProperties()) {
+ p.setOwner(this);
+ }
}
/**
@@ -436,7 +436,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
/**
* Adds cascading JobProperty.
*
- * @param cascadingJobProperty BaseProjectProperty wrapper for JobProperty.
+ * @param projectProperty BaseProjectProperty wrapper for JobProperty.
*/
private void addCascadingJobProperty(BaseProjectProperty projectProperty) {
if (null != projectProperty) {