]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
checks for null pointers, since this is used for unknown namespaces
authorKeiron Liddle <keiron@apache.org>
Fri, 11 Aug 2000 00:56:46 +0000 (00:56 +0000)
committerKeiron Liddle <keiron@apache.org>
Fri, 11 Aug 2000 00:56:46 +0000 (00:56 +0000)
then it may not be properly set up.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193629 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/FObjMixed.java

index 9bf4861bc53837e10b9faaa583ca8d9fc6e1d940..35f41273677d170d65aa86ad30c361de7a628e5d 100644 (file)
@@ -81,15 +81,22 @@ public class FObjMixed extends FObj {
 
     public Status layout(Area area) throws FOPException {
 
-        String id = this.properties.get("id").getString();
+        if(this.properties != null) {
+            Property prop = this.properties.get("id");
+            if(prop != null) {
+                String id = prop.getString();
 
-        if ( this.marker == START ) {
-            area.getIDReferences().createID(id);                                
-            this.marker = 0;
-        }
+                if ( this.marker == START ) {
+                    if(area.getIDReferences() != null)
+                        area.getIDReferences().createID(id);                                
+                    this.marker = 0;
+                }
 
-        if ( this.marker == 0 ) {
-            area.getIDReferences().configureID(id,area);                                
+                if ( this.marker == 0 ) {
+                    if(area.getIDReferences() != null)
+                        area.getIDReferences().configureID(id,area);                                
+                }
+            }
         }
 
         int numChildren = this.children.size();