JENKINS-16573 Getting testing result from non default junit mojo failed build.

This commit is contained in:
Vladimir Kravets committed 2013-01-31 17:58:53 +02:00
1 parent a9c0080ebd
commit c846f7cf40
1 file changed
+1 -1
@@ -101,7 +101,7 @@ enum TestMojo {
public Iterable<File> getReportFiles(MavenProject pom, MojoInfo mojo) throws ComponentConfigurationException {
if (this.reportDirectoryConfigKey != null) {
File reportsDir = mojo.getConfigurationValue(this.reportDirectoryConfigKey, File.class);
if (reportsDir.exists()) {
if (reportsDir != null && reportsDir.exists()) {
return getReportFiles(reportsDir, getFileSet(reportsDir));
}