summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-06-30 20:03:28 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-06-30 20:06:33 -0400
commitdc93074f71f91efd8a615ad8f1a5289deb210b75 (patch)
tree8143bd8e995c443b2c82936c06443fee5e700b65 /sax
parent712d60f03d4c7dfa1ec56e49f40036ab7eb25fde (diff)
Use a new fast parser instance for each XML fragment.
Otherwise a crash ensues when the threaded XML parsing kicks in. Change-Id: Ic41e5a29bbb860d7b63b70f2f0d8896264d9d53e
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 82378b1b0275..17e0213e8845 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -979,6 +979,9 @@ void FastSaxParserImpl::produce( CallbackType aType )
bool FastSaxParserImpl::hasNamespaceURL( const OUString& rPrefix ) const
{
+ if (maEntities.empty())
+ return false;
+
const Entity& rEntity = getEntity();
if (rEntity.maNamespaceCount.empty())