Skip to content

Commit

Permalink
[FIXED JENKINS-8525] NPE during in parsing POMs for Multi Module Build
Browse files Browse the repository at this point in the history
Originally-Committed-As: be09ca67a6237cd176dd9e8562ae86adb85a38f0
  • Loading branch information
olamy committed Feb 21, 2011
1 parent e3fcbbb commit 337b872
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/hudson/maven/MavenModuleSetBuild.java
Expand Up @@ -1209,9 +1209,11 @@ public List<PomInfo> invoke(File ws, VirtualChannel channel) throws IOException
private void toPomInfo(MavenProject mp, PomInfo parent, Map<String,MavenProject> abslPath, Set<PomInfo> infos) throws IOException {

String relPath = PathTool.getRelativeFilePath( this.moduleRootPath, mp.getBasedir().getPath() );
//PathTool.getRelativeFilePath( this.workspaceProper, mp.getBasedir().getPath() );
relPath = FilenameUtils.normalize( relPath );

// JENKINS-8525 FilenameUtils.normalize for ../foo returns null
if (!StringUtils.startsWith( relPath, "../" )) {
relPath = FilenameUtils.normalize( relPath );
}
if (parent == null ) {
relPath = getRootPath(rootPOMRelPrefix);
}
Expand Down

0 comments on commit 337b872

Please sign in to comment.