summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Krishna Verma <ram.krishna.verma@est.tech>2019-11-20 09:57:22 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-20 09:57:22 +0000
commit6c56c92a9639afa11afbd0abc4a2e5df58a35036 (patch)
tree05980ca162894bb1fe7d28222c7a7a4a4436d375
parent2852ea6e6d7a7d368f1c593c1cfbec0b4735c1bb (diff)
parent41a6c1afb79f90b9e5834734d50989e0b5699578 (diff)
Merge "Fixing issue where PdpRegistration message is treated as Heartbeat by PAP"
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
index 6998140f..09ee64dc 100644
--- a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
+++ b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
@@ -66,7 +66,7 @@ public class PdpStatusMessageHandler extends PdpMessageGenerator {
public void handlePdpStatus(final PdpStatus message) {
synchronized (updateLock) {
try (PolicyModelsProvider databaseProvider = modelProviderWrapper.create()) {
- if (message.getPdpGroup() == null && message.getPdpSubgroup() == null) {
+ if (message.getPdpSubgroup() == null) {
handlePdpRegistration(message, databaseProvider);
} else {
handlePdpHeartbeat(message, databaseProvider);