diff --git a/src/common/xmpp/simplexml.py b/src/common/xmpp/simplexml.py index 0057b472f..76c70651f 100644 --- a/src/common/xmpp/simplexml.py +++ b/src/common/xmpp/simplexml.py @@ -362,7 +362,7 @@ class NodeBuilder: if self.last_is_data: if self.data_buffer: self.data_buffer.append(data) - else: + elif self._ptr: self.data_buffer = [data] self.last_is_data = 1