git-svn-id: svn://anubis/gvsu@291 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-11-29 18:21:37 +00:00
parent 6fd0ce390c
commit be6bbd223a

View File

@ -145,7 +145,11 @@ public class PresenceServiceImpl implements PresenceService
System.out.println("DEBUG: DOM received:\n" + dom.getText());
Document d = dom.getDocument();
Node root = d.getFirstChild();
if (root == null)
System.err.println("listRegisteredUsers(): Error: root node not found");
NodeList nl = root.getChildNodes();
if (nl == null)
System.err.println("listRegisteredUsers(): Error: nl is null");
for (int i = 0; i < nl.getLength(); i++)
{
Node n = nl.item(i);
@ -161,7 +165,7 @@ public class PresenceServiceImpl implements PresenceService
ioex.printStackTrace();
}
RegistrationInfo[] dum = null;
RegistrationInfo[] dum = new RegistrationInfo[1];
return users.toArray(dum);
}