Skip to content

Commit ee2ded8

Browse files
DaanHooglandDaan Hoogland
andauthored
potential null pointer in condition; AYAI9l8k5Irk9_td-cXb (#6237)
Co-authored-by: Daan Hoogland <dahn@onecht.net>
1 parent e7071ec commit ee2ded8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/main/java/com/cloud/agent/api/storage/OVFParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public String getChildNodeValue(Node node, String childNodeName) {
103103
Node value = childNodes.item(i);
104104
// Also match if the child's name has a suffix:
105105
// Example: <rasd:AllocationUnits>
106-
if (value != null && (value.getNodeName().equals(childNodeName)) || value.getNodeName().endsWith(":" + childNodeName)) {
106+
if (value != null && (value.getNodeName().equals(childNodeName) || value.getNodeName().endsWith(":" + childNodeName))) {
107107
return value.getTextContent();
108108
}
109109
}

0 commit comments

Comments
 (0)