From: Reo Inoue Date: Mon, 20 Apr 2020 07:20:49 +0000 (+0900) Subject: Fix bug for class SwitchoverDetector X-Git-Tag: 1.7.0~208 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=27d169b34e81a9d42eaa0b7aab3797227a379f30;p=sdc.git Fix bug for class SwitchoverDetector Signed-off-by: Reo Inoue Issue-ID: SDC-2931 Change-Id: I6b40f538ff9ce7eed22ce71c542b188a8c866f26 --- diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java b/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java index f2f1668fb6..cbcbb03480 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java @@ -127,7 +127,7 @@ public class SwitchoverDetector { beMatch = queryBe(); feMatch = queryFe(); - if (beMatch == feMatch && beMatch != null) { + if (beMatch != null && beMatch.equals(feMatch)) { if (beMatch) { setSiteMode(SwitchoverDetectorState.ACTIVE.getState()); } else {