Skip to content

Commit

Permalink
Fix NPE when using freshly imported report
Browse files Browse the repository at this point in the history
(cherry picked from commit f4a6e45)
  • Loading branch information
mederly committed Jun 13, 2018
1 parent f73dcc9 commit cc29c0c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -19,6 +19,7 @@
import com.evolveum.midpoint.xml.ns._public.common.common_3.ExportType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ReportType;
import com.evolveum.prism.xml.ns._public.types_3.PolyStringType;
import org.apache.commons.lang.BooleanUtils;

import java.io.Serializable;

Expand Down Expand Up @@ -71,7 +72,7 @@ public ReportDto(ReportType reportType, boolean onlyForPromptingParams) {
// this.xml = new String(Base64.decodeBase64(reportType.getTemplate()));
this.jasperReportDto = new JasperReportDto(reportType.getTemplate(), onlyForPromptingParams);
this.templateStyle = reportType.getTemplateStyle();
this.parent = reportType.isParent();
this.parent = !BooleanUtils.isFalse(reportType.isParent());
this.virtualizer = reportType.getVirtualizer();
this.virtualizerKickOn = reportType.getVirtualizerKickOn();
this.maxPages = reportType.getMaxPages();
Expand Down

0 comments on commit cc29c0c

Please sign in to comment.