Packet reader thread is freezing when parsing an error text with no description

Description

Parser locks up when parsing a message like this:

<message xml:lang="en" id="3wmzm-4" to="agent@myserver.com/Smack" from="gato@yourserver.com/gmail.21F651DF" type="error">
<body>HELLO</body>
<error code="501" type="cancel">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</message>

The problem is that the text element does not contain a text.

Environment

None

Acceptance Test - Entry

None
Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure