From 12026eac09e773e83887a6073d5a034979ce7043 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 9 Apr 2013 01:37:16 -0600 Subject: [PATCH] Ignore null cdata --- xml-utils.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xml-utils.lisp b/xml-utils.lisp index a3305ca..fc80feb 100644 --- a/xml-utils.lisp +++ b/xml-utils.lisp @@ -81,6 +81,8 @@ and position of character following end tag." (defun write-cdata (str s) (declare (simple-string str) (optimize (speed 3) (safety 0) (space 0))) + (unless str + (return-from write-cdata nil)) (do ((len (length str)) (i 0 (1+ i))) ((= i len) str) @@ -171,4 +173,3 @@ and position of character following end tag." :organization organization :type type :label label :language language :url url :entities entities)) stream) - -- 2.34.1