Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-27475] Avoids NPE on renaming a project though it's un…
…clear why this happens.
  • Loading branch information
ikedam committed May 3, 2015
1 parent ff6073c commit f71ab12
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 f71ab12

Please sign in to comment.