Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit af2c5fa

Browse files
author
Radislav Berkovich
committed
tech : fix rebranding job that fail with nullpointer if some job doesn't have builds
1 parent fcef4b6 commit af2c5fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/microfocus/application/automation/tools/run/JobConfigRebrander.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnul
7878
final File buildsFolder = new File(subdir, "builds");
7979
File[] builds = buildsFolder.listFiles();
8080

81-
for(final File buildDir : builds){
82-
convertSpecifiedXmlFile(listener, buildDir, "build.xml");
81+
if(builds != null) {
82+
for (final File buildDir : builds) {
83+
convertSpecifiedXmlFile(listener, buildDir, "build.xml");
84+
}
8385
}
8486
}
8587
}

0 commit comments

Comments
 (0)