diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-10-07 13:53:33 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-10-07 13:53:33 +0000 |
commit | f59abd860a61c94ee6f0d31178b92ef7ea1bff32 (patch) | |
tree | 67dec00188c1df86d8338e7f64f81b5dfdc11c37 /src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java | |
parent | 4b4ea04636cc11258c8febc37da287a05037be91 (diff) | |
download | xmlgraphics-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.java | 2 |
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; |