From 152e6a84d89f748c1dc4877594702732a6147c4f Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 12 Sep 2010 06:16:23 +0200 Subject: [PATCH] DocBuffer.asnode: Convert null properly. --- src/dolda/jsvc/next/DocBuffer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dolda/jsvc/next/DocBuffer.java b/src/dolda/jsvc/next/DocBuffer.java index d885a0b..b936c0a 100644 --- a/src/dolda/jsvc/next/DocBuffer.java +++ b/src/dolda/jsvc/next/DocBuffer.java @@ -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) -- 2.11.0