aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/fo/ElementMappingRegistry.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/ElementMappingRegistry.java b/src/java/org/apache/fop/fo/ElementMappingRegistry.java
index 9bb0ab19b..2609b902d 100644
--- a/src/java/org/apache/fop/fo/ElementMappingRegistry.java
+++ b/src/java/org/apache/fop/fo/ElementMappingRegistry.java
@@ -160,7 +160,11 @@ public class ElementMappingRegistry {
*/
public DOMImplementation getDOMImplementationForNamespace(String namespaceURI) {
ElementMapping mapping = (ElementMapping)this.namespaces.get(namespaceURI);
- return mapping.getDOMImplementation();
+ if (mapping == null) {
+ return null;
+ } else {
+ return mapping.getDOMImplementation();
+ }
}
/**