Skip to content

Commit 8a66035

Browse files
committed
fixed NPE when trying to read default font
1 parent dc30f14 commit 8a66035

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/docx2pdf/Converter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private Text setFontSize(DJMRun djmr, Text text) {
241241
* @return
242242
*/
243243
private Text setFontFamily(DJMRun djmr, Text text) {
244-
if (djmr.getText() == null || djmr.getRunProperties().getFont().getValue() == null) {
244+
if (djmr.getText() == null || djmr.getRunProperties().getFont() == null || djmr.getRunProperties().getFont().getValue() == null) {
245245
return text;
246246
}
247247

0 commit comments

Comments
 (0)