aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-10-07 13:53:33 +0000
committerJeremias Maerki <jeremias@apache.org>2009-10-07 13:53:33 +0000
commitf59abd860a61c94ee6f0d31178b92ef7ea1bff32 (patch)
tree67dec00188c1df86d8338e7f64f81b5dfdc11c37 /src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java
parent4b4ea04636cc11258c8febc37da287a05037be91 (diff)
downloadxmlgraphics-fop-f59abd860a61c94ee6f0d31178b92ef7ea1bff32.tar.gz
xmlgraphics-fop-f59abd860a61c94ee6f0d31178b92ef7ea1bff32.zip
Bugzilla #47953:
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-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java')
-rw-r--r--src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java b/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java
index 071357b82..49e51b3d1 100644
--- a/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java
+++ b/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java
@@ -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;