修复 DAVFS客户端上传文件时空指针的BUG
This commit is contained in:
parent
83283a2133
commit
fec2079f5c
|
@ -209,6 +209,9 @@ public class DoLock extends AbstractMethod {
|
|||
return;
|
||||
}
|
||||
nullSo = _store.getStoredObject(transaction, _path);
|
||||
if (nullSo == null) {
|
||||
nullSo = new StoredObject();
|
||||
}
|
||||
// define the newly created resource as null-resource
|
||||
nullSo.setNullResource(true);
|
||||
|
||||
|
@ -416,8 +419,13 @@ public class DoLock extends AbstractMethod {
|
|||
|
||||
if (currentNode.getNodeType() == Node.ELEMENT_NODE
|
||||
|| currentNode.getNodeType() == Node.TEXT_NODE) {
|
||||
if (currentNode.getFirstChild() != null) {
|
||||
_lockOwner = currentNode.getFirstChild()
|
||||
.getNodeValue();
|
||||
} else {
|
||||
_lockOwner = currentNode.toString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue