Skip to content
Snippets Groups Projects
Commit e7ffb752 authored by srosse's avatar srosse
Browse files

OO-3203: prevent NPE in case of nested list in the HTML to OpenXML converter

parent 2e78617e
No related branches found
No related tags found
No related merge requests found
...@@ -144,6 +144,10 @@ public class HTMLToOpenXMLHandler extends DefaultHandler { ...@@ -144,6 +144,10 @@ public class HTMLToOpenXMLHandler extends DefaultHandler {
flushText(); flushText();
addContent(currentParagraph); addContent(currentParagraph);
} }
if(currentListParagraph == null) {
//nested list
currentListParagraph = factory.createListParagraph();
}
currentParagraph = factory.createListParagraph(currentListParagraph); currentParagraph = factory.createListParagraph(currentListParagraph);
} }
return currentParagraph; return currentParagraph;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment