Commit 8738dcbd authored by Dele Olajide's avatar Dele Olajide

Merge pull request #49 from dwd/dwd/jabber-s2s-quickfix

Quick fix for old-skool Jabber on S2S
parents a60eefe2 fcc55409
...@@ -674,7 +674,8 @@ public class ServerDialback { ...@@ -674,7 +674,8 @@ public class ServerDialback {
for (int eventType = xpp.getEventType(); eventType != XmlPullParser.START_TAG;) { for (int eventType = xpp.getEventType(); eventType != XmlPullParser.START_TAG;) {
eventType = xpp.next(); eventType = xpp.next();
} }
if (xpp.getAttributeValue("", "version").equals("1.0")) { if ((xpp.getAttributeValue("", "version") != null) &&
(xpp.getAttributeValue("", "version").equals("1.0"))) {
Document doc; Document doc;
try { try {
doc = reader.parseDocument(); doc = reader.parseDocument();
......
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