Description
if (childFieldsList1 == null && childFieldsList2 == null) { return true; } if (childFieldsList1.size() != childFieldsList2.size()) { return false; }
If either childFieldsList1 or childFieldsList2 is null but not both, the second if statement would produce NPE.