Skip to content

Commit

Permalink
Merge pull request #64 from ikedam/feature/JENKINS-27475_AvoidsNpeFor…
Browse files Browse the repository at this point in the history
…UnexpectedCase

[JENKINS-27475] Avoids NPE on renaming a project.
  • Loading branch information
ikedam committed May 8, 2015
2 parents 4062486 + f71ab12 commit b2ccc39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
Expand Up @@ -541,6 +541,10 @@ public void onRenamed(Item item, String oldName, String newName) {
try {
for (CopyArtifact ca : getCopiers(project)) {
String projectName = ca.getProjectName();
if (projectName == null) {
// JENKINS-27475 (not sure why this happens).
continue;
}

String suffix = "";
// Support rename for "MatrixJobName/AxisName=value" type of name
Expand Down

0 comments on commit b2ccc39

Please sign in to comment.