Kaydet (Commit) 4a0a89f2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326465 Dereference null return value

Change-Id: I0bb704e3f49444c7b377ac22acb52cf2dd58325f
üst 0d8f7f69
......@@ -45,8 +45,10 @@ public final class XmlUtil {
// clone the starting node
Node clonedNode = cloneNode(docNode, newNode);
// then clone the sub-tree recursively
cloneTree(docNode, clonedNode, newNode);
if (clonedNode != null) {
// then clone the sub-tree recursively
cloneTree(docNode, clonedNode, newNode);
}
return clonedNode;
}
......@@ -166,4 +168,4 @@ public final class XmlUtil {
return buffer.toString();
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment