Ignore invalid file tags in file transfer responses

cusax-fix
Ingo Bauersachs 13 years ago
parent c170b9dd13
commit bbfa301951

@ -251,8 +251,14 @@ else if (elementName.equals("thumbnail"))
else if (eventType == XmlPullParser.END_TAG)
{
if (elementName.equals("si"))
{
done = true;
else if (elementName.equals("file"))
}
// The name-attribute is required per XEP-0096, so ignore the
// IQ if the name is not set to avoid exceptions. Particularly,
// the SI response of Empathy contains an invalid, empty
// file-tag.
else if (elementName.equals("file") && name != null)
{
long fileSize = 0;

Loading…
Cancel
Save