You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/10/05 12:17:55 UTC

cvs commit: xml-fop/src/org/apache/fop/fo FOTreeBuilder.java

keiron      01/10/05 03:17:55

  Modified:    src/org/apache/fop/fo FOTreeBuilder.java
  Log:
  prevents npe if namespace is unknown
  
  Revision  Changes    Path
  1.30      +6 -3      xml-fop/src/org/apache/fop/fo/FOTreeBuilder.java
  
  Index: FOTreeBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOTreeBuilder.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- FOTreeBuilder.java	2001/09/24 09:17:12	1.29
  +++ FOTreeBuilder.java	2001/10/05 10:17:55	1.30
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FOTreeBuilder.java,v 1.29 2001/09/24 09:17:12 keiron Exp $
  + * $Id: FOTreeBuilder.java,v 1.30 2001/10/05 10:17:55 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -210,12 +210,15 @@
           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);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org