aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/apps/Driver.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/apps/Driver.java')
-rw-r--r--src/org/apache/fop/apps/Driver.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/apache/fop/apps/Driver.java b/src/org/apache/fop/apps/Driver.java
index e885fafb5..7cb5579c5 100644
--- a/src/org/apache/fop/apps/Driver.java
+++ b/src/org/apache/fop/apps/Driver.java
@@ -566,6 +566,10 @@ class Service {
public static synchronized Enumeration providers(Class cls) {
ClassLoader cl = cls.getClassLoader();
+ // null if loaded by bootstrap class loader
+ if(cl == null) {
+ cl = ClassLoader.getSystemClassLoader();
+ }
String serviceFile = "META-INF/services/" + cls.getName();
// System.out.println("File: " + serviceFile);