aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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++) {