Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-15156] Massive test failures with NPE.
Seems that the RunMap must be initialized before updateTransientActions, which uses it, is called.
  • Loading branch information
jglick committed Feb 7, 2013
1 parent 74e6409 commit 7ac1576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -269,10 +269,10 @@ public synchronized void save() throws IOException {
@Override
public void onCreatedFromScratch() {
super.onCreatedFromScratch();
// solicit initial contributions, especially from TransientProjectActionFactory
updateTransientActions();
assert builds == null;
builds = createBuildRunMap();
// solicit initial contributions, especially from TransientProjectActionFactory
updateTransientActions();
}

@Override
Expand Down

0 comments on commit 7ac1576

Please sign in to comment.