When rendering a long hyphenated string using OpenHTMLtoPDF, the output visually looks correct — the string is broken into multiple lines. However, when copying the text from the resulting PDF (e.g.
Caused by: java.lang.NullPointerException: Cannot read field "families" because "spec" is null at com.openhtmltopdf.pdfboxout.PdfBoxFontResolver.resolveFont ...