Kaydet (Commit) c6aea0ba authored tarafından Caolán McNamara's avatar Caolán McNamara

don't call top on an empty stack

Change-Id: Ibe4b4d3785535816b40d46fd0baa60f01e1f9d33
üst c1435559
...@@ -1048,7 +1048,7 @@ void FastSaxParserImpl::pushEntity( const Entity& rEntity ) ...@@ -1048,7 +1048,7 @@ void FastSaxParserImpl::pushEntity( const Entity& rEntity )
void FastSaxParserImpl::popEntity() void FastSaxParserImpl::popEntity()
{ {
maEntities.pop(); maEntities.pop();
mpTop = &maEntities.top(); mpTop = !maEntities.empty() ? &maEntities.top() : NULL;
} }
// starts parsing with actual parser ! // starts parsing with actual parser !
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment