DocBuffer.asnode: Convert null properly.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Sep 2010 04:16:23 +0000 (06:16 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Sep 2010 04:16:23 +0000 (06:16 +0200)
src/dolda/jsvc/next/DocBuffer.java

index d885a0b..b936c0a 100644 (file)
@@ -77,6 +77,8 @@ public class DocBuffer {
     }
     
     public Node asnode(Object o) {
+       if(o == null)
+           return(text(""));
        if(o instanceof Node) {
            Node n = (Node)o;
            if(n.getOwnerDocument() != doc)