aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-04-16 14:36:47 -0400
committerJim Hahn <jrh3@att.com>2019-04-16 14:40:27 -0400
commitbe53ec0fc5aef69c7dd26a1c53da0fdbe334f743 (patch)
treedaae945c7df78c364ddf850b451b3a819149aa40
parent241aa508172037a7fd5a17d4d9217e660a2bad48 (diff)
Set DAO factory in request map parameters
While testing, saw NPE when PdpModifyRequestMap attempted to create a DAO provider. Forgot to add the DAO factory to the list of parameters passed to the request map constructor. Change-Id: I72bc63543bc58b11c3ef70f50342e72a24a8b653 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java b/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
index 8f3583e1..1b7281ca 100644
--- a/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
+++ b/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
@@ -174,6 +174,7 @@ public class PapActivator extends ServiceManagerContainer {
addAction("PDP modification requests",
() -> Registry.register(PapConstants.REG_PDP_MODIFY_MAP, new PdpModifyRequestMap(
new PdpModifyRequestMapParams()
+ .setDaoFactory(daoFactory.get())
.setModifyLock(pdpUpdateLock)
.setParams(pdpParams)
.setPublisher(pdpPub.get())