Bugfix for NPE: referencedFontsMatcher can also be null, not just localMatcher. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@822742 13f79535-47bb-0310-9956-ffa450edef68tags/fop-1_0
@@ -266,7 +266,7 @@ public class AFPRendererConfigurator extends PrintRendererConfigurator | |||
+ triplet.getWeight()); | |||
} | |||
if (referencedFontsMatcher.matches(triplet) | |||
if ((referencedFontsMatcher != null && referencedFontsMatcher.matches(triplet)) | |||
|| (localMatcher != null && localMatcher.matches(triplet))) { | |||
afi.getAFPFont().setEmbeddable(false); | |||
break; |