Skip to content
Permalink
Browse files

[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 f71ab1230f153397f4bd6e1412b59c4f04d6e02b
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
@@ -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

0 comments on commit f71ab12

Please sign in to comment.
You can’t perform that action at this time.