Parcourir la source

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
tags/fop-1_0
Jeremias Maerki il y a 14 ans
Parent
révision
f59abd860a

+ 1
- 1
src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java Voir le fichier

@@ -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;

Chargement…
Annuler
Enregistrer