Skip to content

Commit 9045e41

Browse files
wilderrodriguesDaan Hoogland
authored andcommitted
fix for Find Bugs findings on troubling issues: returning null when expected is boolean; adding 6 unit tests and fix 1 in the KVMFencer; comparing objects with == instead of equals()
Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
1 parent cefd4ce commit 9045e41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ private void enableXenServerNetwork(Connection conn, Network nw, String vifNameL
884884
Set<VIF> dom0Vifs = dom0.getVIFs(conn);
885885
for (VIF vif : dom0Vifs) {
886886
vif.getRecord(conn);
887-
if (vif.getNetwork(conn).getUuid(conn) == nw.getUuid(conn)) {
887+
if (vif.getNetwork(conn).getUuid(conn).equals(nw.getUuid(conn))) {
888888
dom0vif = vif;
889889
s_logger.debug("A VIF for dom0 has already been found - No need to create one");
890890
}

0 commit comments

Comments
 (0)