From d81af813b4bccfe80adac24287a9e3e0aa5203a5 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Sat, 20 Apr 2019 11:59:12 +0300 Subject: [PATCH] Bugfix NPE. --- src/main/java/writer2latex/xhtml/TextConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/writer2latex/xhtml/TextConverter.java b/src/main/java/writer2latex/xhtml/TextConverter.java index 6365978..fd239f5 100644 --- a/src/main/java/writer2latex/xhtml/TextConverter.java +++ b/src/main/java/writer2latex/xhtml/TextConverter.java @@ -353,7 +353,7 @@ public class TextConverter extends ConverterHelper { } } if (head != null && style == null){ - StyleWithProperties headStyle = ofr.getParStyle(Misc.getAttribute(para,XMLString.TEXT_STYLE_NAME)); + StyleWithProperties headStyle = ofr.getParStyle(Misc.getAttribute(head,XMLString.TEXT_STYLE_NAME)); if (headStyle != null) { newPageNumberProperty = headStyle.getParProperty(XMLString.STYLE_PAGE_NUMBER, true); }