Fix bug for class SwitchoverDetector 43/106243/3
authorReo Inoue <inoue.reo@jp.fujitsu.com>
Mon, 20 Apr 2020 07:20:49 +0000 (16:20 +0900)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Wed, 22 Apr 2020 11:01:42 +0000 (11:01 +0000)
Signed-off-by: Reo Inoue <inoue.reo@jp.fujitsu.com>
Issue-ID: SDC-2931
Change-Id: I6b40f538ff9ce7eed22ce71c542b188a8c866f26

catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java

index f2f1668..cbcbb03 100644 (file)
@@ -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 {