Skip to content

Commit a1cfcd5

Browse files
committed
PDFBOX-6187: avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1932850 13f79535-47bb-0310-9956-ffa450edef68
1 parent c9694e6 commit a1cfcd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ private void insertGeneratedAppearance(PDAnnotationWidget widget,
522522
{
523523
throw new IllegalArgumentException("font is null, check whether /DA entry is incomplete or incorrect");
524524
}
525-
if (font.getName().contains("+"))
525+
if (font.getName() != null && font.getName().contains("+"))
526526
{
527527
LOG.warn("Font '{}' of field '{}' contains subsetted font '{}'",
528528
defaultAppearance.getFontName().getName(), field.getFullyQualifiedName(),

0 commit comments

Comments
 (0)