Use getChildElement() rather than getNode() to check for an already
existing user item in registerUser().
This commit is contained in:
parent
2ec37bda9c
commit
2185848e6c
1 changed files with 2 additions and 2 deletions
|
@ -903,7 +903,7 @@ public final class Application implements IPathElement, Runnable {
|
|||
ArrayList list = new ArrayList();
|
||||
INode users = getUserRoot();
|
||||
|
||||
// first try to get them from subnodes (db)
|
||||
// add all child nodes to the list
|
||||
for (Enumeration e = users.getSubnodes(); e.hasMoreElements();) {
|
||||
list.add(e.nextElement());
|
||||
}
|
||||
|
@ -973,7 +973,7 @@ public final class Application implements IPathElement, Runnable {
|
|||
try {
|
||||
INode users = getUserRoot();
|
||||
|
||||
unode = users.getNode(uname);
|
||||
unode = (INode) users.getChildElement(uname);
|
||||
|
||||
if (unode != null) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue