diff options
author | Keiron Liddle <keiron@apache.org> | 2001-10-05 10:17:55 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-10-05 10:17:55 +0000 |
commit | e4e3f3d6366ce6924d9f560f0bd8152bbb601a14 (patch) | |
tree | 89f798c6ea2c9f5657cd50f5a7dfd84b486f4ab2 | |
parent | 9dafe173d0ad250d90411412800b9605adb46eae (diff) | |
download | xmlgraphics-fop-e4e3f3d6366ce6924d9f560f0bd8152bbb601a14.tar.gz xmlgraphics-fop-e4e3f3d6366ce6924d9f560f0bd8152bbb601a14.zip |
prevents npe if namespace is unknown
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194490 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/fo/FOTreeBuilder.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/apache/fop/fo/FOTreeBuilder.java b/src/org/apache/fop/fo/FOTreeBuilder.java index 6b7417e61..4e4cefafe 100644 --- a/src/org/apache/fop/fo/FOTreeBuilder.java +++ b/src/org/apache/fop/fo/FOTreeBuilder.java @@ -210,12 +210,15 @@ public class FOTreeBuilder extends DefaultHandler implements TreeBuilder { FObj fobj; /* the maker for the formatting object started */ - FObj.Maker fobjMaker; + FObj.Maker fobjMaker = null; // String fullName = mapName(rawName); //String fullName = uri + "^" + localName; HashMap table = (HashMap)fobjTable.get(uri); - fobjMaker = (FObj.Maker)table.get(localName); + if(table != null) { + fobjMaker = (FObj.Maker)table.get(localName); + } + PropertyListBuilder currentListBuilder = (PropertyListBuilder)this.propertylistTable.get(uri); |