mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-27 14:47:59 +01:00
Skips CRs while parsing packet properties. SMACK-138
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2321 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
250ab4de71
commit
2bb363b898
1 changed files with 4 additions and 0 deletions
|
@ -748,9 +748,13 @@ class PacketReader {
|
|||
int eventType = parser.next();
|
||||
if (eventType == XmlPullParser.START_TAG && parser.getName().equals("property")) {
|
||||
// Advance to name element.
|
||||
// Skip CRs
|
||||
parser.next();
|
||||
parser.next();
|
||||
String name = parser.nextText();
|
||||
parser.next();
|
||||
// Skip CRs
|
||||
parser.next();
|
||||
String type = parser.getAttributeValue("", "type");
|
||||
String valueText = parser.nextText();
|
||||
Object value = null;
|
||||
|
|
Loading…
Reference in a new issue