mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
potential null pointer in condition; AYAI9l8k5Irk9_td-cXb (#6237)
Co-authored-by: Daan Hoogland <dahn@onecht.net>
This commit is contained in:
parent
e7071ec196
commit
ee2ded8200
@ -103,7 +103,7 @@ public class OVFParser {
|
|||||||
Node value = childNodes.item(i);
|
Node value = childNodes.item(i);
|
||||||
// Also match if the child's name has a suffix:
|
// Also match if the child's name has a suffix:
|
||||||
// Example: <rasd:AllocationUnits>
|
// Example: <rasd:AllocationUnits>
|
||||||
if (value != null && (value.getNodeName().equals(childNodeName)) || value.getNodeName().endsWith(":" + childNodeName)) {
|
if (value != null && (value.getNodeName().equals(childNodeName) || value.getNodeName().endsWith(":" + childNodeName))) {
|
||||||
return value.getTextContent();
|
return value.getTextContent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user