mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Use empty string nick on empty element tag
It will use an empty string in case of an empty element tag.
This commit is contained in:
parent
fefc8cf332
commit
df0f805feb
1 changed files with 1 additions and 8 deletions
|
@ -99,14 +99,7 @@ public class Nick implements ExtensionElement {
|
||||||
@Override
|
@Override
|
||||||
public Nick parse(XmlPullParser parser, int initialDepth)
|
public Nick parse(XmlPullParser parser, int initialDepth)
|
||||||
throws XmlPullParserException, IOException {
|
throws XmlPullParserException, IOException {
|
||||||
|
final String name = parser.nextText();
|
||||||
parser.next();
|
|
||||||
final String name = parser.getText();
|
|
||||||
|
|
||||||
// Advance to end of extension.
|
|
||||||
while(parser.getEventType() != XmlPullParser.END_TAG) {
|
|
||||||
parser.next();
|
|
||||||
}
|
|
||||||
|
|
||||||
return new Nick(name);
|
return new Nick(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue