Skip to content

Commit

Permalink
MAILET-123 Mailetdocs should no fail when no report
Browse files Browse the repository at this point in the history
  • Loading branch information
aduprat authored and Antoine Duprat committed Oct 25, 2016
1 parent 188b6d1 commit 1a5aae0
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -31,6 +31,8 @@
import org.apache.maven.reporting.AbstractMavenReport;
import org.apache.maven.reporting.MavenReportException;

import com.google.common.base.Strings;

/**
* <p>
* Base for singleton and aggregate reports on mailets and matchers.
Expand Down Expand Up @@ -223,7 +225,10 @@ private void outputDescriptorList(List<MailetMatcherDescriptor> descriptors, Str
}

getSink().paragraph();
getSink().rawText(descriptor.getClassDocs());
String classDocs = descriptor.getClassDocs();
if (!Strings.isNullOrEmpty(classDocs)) {
getSink().rawText(classDocs);
}
getSink().paragraph_();

getSink().section2_();
Expand Down

0 comments on commit 1a5aae0

Please sign in to comment.