summaryrefslogtreecommitdiffstats
path: root/reportbuilder
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder')
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
index e629d43081a3..3f23ab3b4f63 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
@@ -1254,6 +1254,10 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
final LexicalUnit cssValue = styleSheetParserUtil.parseLexicalStyleValue(
text);
+ if (cssValue == null) {
+ CSSNumericValue zeroLength = CSSNumericValue.createValue(CSSNumericType.CM, 0);
+ return zeroLength;
+ }
return CSSValueFactory.createLengthValue(cssValue);
}