Kaydet (Commit) 3ede68e1 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Don't go further and pop the stack if it's empty.

Change-Id: I27bd30ca65cf0066cd022b4b060757913ea01fed
üst 8197a6c1
...@@ -472,6 +472,12 @@ void Entity::characters( const OUString& sChars ) ...@@ -472,6 +472,12 @@ void Entity::characters( const OUString& sChars )
void Entity::endElement() void Entity::endElement()
{ {
if (maContextStack.empty())
{
// Malformed XML stream !?
return;
}
const SaxContext& aContext = maContextStack.top(); const SaxContext& aContext = maContextStack.top();
const Reference< XFastContextHandler >& xContext( aContext.mxContext ); const Reference< XFastContextHandler >& xContext( aContext.mxContext );
if( xContext.is() ) try if( xContext.is() ) try
......
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