多级虚拟组织处理修复
This commit is contained in:
parent
a012007f36
commit
0b6b72ae44
@ -212,7 +212,7 @@ public class XmlUtil {
|
||||
}
|
||||
deviceChannel.setParentId(XmlUtil.getText(itemDevice, "ParentID"));
|
||||
String parentId = XmlUtil.getText(itemDevice, "ParentID");
|
||||
if (parentId.contains("/")) {
|
||||
if (parentId != null && parentId.contains("/")) {
|
||||
String lastParentId = parentId.substring(parentId.lastIndexOf("/") + 1);
|
||||
deviceChannel.setParentId(lastParentId);
|
||||
}else {
|
||||
|
Loading…
Reference in New Issue
Block a user