docx4j icon indicating copy to clipboard operation
docx4j copied to clipboard

AbstractFontPart tmpFontDir will remain null if no user.home

Open amundsor opened this issue 2 years ago • 0 comments

AbstractFontPart#63 warns the user about this: log.warn("No home dir found; consider setting property 'docx4j.openpackaging.parts.WordprocessingML.ObfuscatedFontPart.tmpFontDir'");

But when trying to convert Word -> PDF when user.home is not present, will create NullPointerException in ObfuscatedFontPart#227.

Perhaps this is an acceptable behaviour, but should the log-message be altered or throwing exception?

amundsor avatar Jun 15 '23 08:06 amundsor