aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-03-02 16:56:15 +0000
committerJeremias Maerki <jeremias@apache.org>2007-03-02 16:56:15 +0000
commit8fdf4980f549389b3f17049ed313197860e08512 (patch)
treeafbc31e1b3939c2e1bd6a7b78393fb84d692d4dd /src
parent10a9fc480c2a7ac372fd68e47ac0fcffae1f3456 (diff)
downloadxmlgraphics-fop-8fdf4980f549389b3f17049ed313197860e08512.tar.gz
xmlgraphics-fop-8fdf4980f549389b3f17049ed313197860e08512.zip
renderer may be null when called from the PDFTranscoder.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fonts/FontSetup.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fonts/FontSetup.java b/src/java/org/apache/fop/fonts/FontSetup.java
index bd3e81d4f..9659398ba 100644
--- a/src/java/org/apache/fop/fonts/FontSetup.java
+++ b/src/java/org/apache/fop/fonts/FontSetup.java
@@ -261,14 +261,16 @@ public class FontSetup {
throws ConfigurationException {
List fontList = new java.util.ArrayList();
- FontResolver fontResolver = renderer.getFontResolver();
+ FontResolver fontResolver = (renderer != null ? renderer.getFontResolver() : null);
if (fontResolver == null) {
//Ensure that we have minimal font resolution capabilities
fontResolver = FontSetup.createMinimalFontResolver();
}
- boolean strict
- = renderer.getUserAgent().getFactory().validateUserConfigStrictly();
+ boolean strict = false;
+ if (renderer != null) {
+ strict = renderer.getUserAgent().getFactory().validateUserConfigStrictly();
+ }
Configuration[] fonts = cfg.getChildren("fonts");
for (int f = 0; f < fonts.length; f++) {