diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-31 19:48:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-31 19:48:17 +0000 |
commit | c6aea0bac0b168c3b0e5172d10e2d974cf5fd331 (patch) | |
tree | 72038a486632fa64fa2c886294cea7ba6acbd2b6 /sax/source | |
parent | c14355592ccc249500ca58b3607888db195b06c0 (diff) |
don't call top on an empty stack
Change-Id: Ibe4b4d3785535816b40d46fd0baa60f01e1f9d33
Diffstat (limited to 'sax/source')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 96993f8589c1..93b58d87a515 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -1048,7 +1048,7 @@ void FastSaxParserImpl::pushEntity( const Entity& rEntity ) void FastSaxParserImpl::popEntity() { maEntities.pop(); - mpTop = &maEntities.top(); + mpTop = !maEntities.empty() ? &maEntities.top() : NULL; } // starts parsing with actual parser ! |