Skip to content
Permalink
Browse files

Merge pull request #64 from ikedam/feature/JENKINS-27475_AvoidsNpeFor…

…UnexpectedCase

[JENKINS-27475] Avoids NPE on renaming a project.
  • Loading branch information
ikedam committed May 8, 2015
2 parents 4062486 + f71ab12 commit b2ccc3959246aa17b8e3565441be70335a7ad4e5
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 b2ccc39

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