updated
git-svn-id: svn://anubis/gvsu@291 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
6fd0ce390c
commit
be6bbd223a
@ -145,7 +145,11 @@ public class PresenceServiceImpl implements PresenceService
|
|||||||
System.out.println("DEBUG: DOM received:\n" + dom.getText());
|
System.out.println("DEBUG: DOM received:\n" + dom.getText());
|
||||||
Document d = dom.getDocument();
|
Document d = dom.getDocument();
|
||||||
Node root = d.getFirstChild();
|
Node root = d.getFirstChild();
|
||||||
|
if (root == null)
|
||||||
|
System.err.println("listRegisteredUsers(): Error: root node not found");
|
||||||
NodeList nl = root.getChildNodes();
|
NodeList nl = root.getChildNodes();
|
||||||
|
if (nl == null)
|
||||||
|
System.err.println("listRegisteredUsers(): Error: nl is null");
|
||||||
for (int i = 0; i < nl.getLength(); i++)
|
for (int i = 0; i < nl.getLength(); i++)
|
||||||
{
|
{
|
||||||
Node n = nl.item(i);
|
Node n = nl.item(i);
|
||||||
@ -161,7 +165,7 @@ public class PresenceServiceImpl implements PresenceService
|
|||||||
ioex.printStackTrace();
|
ioex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
RegistrationInfo[] dum = null;
|
RegistrationInfo[] dum = new RegistrationInfo[1];
|
||||||
return users.toArray(dum);
|
return users.toArray(dum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user