summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoss Armstrong <joss.armstrong@ericsson.com>2019-02-19 14:00:41 +0000
committerTakamune Cho <takamune.cho@att.com>2019-02-19 16:50:05 +0000
commitdfa107152577e88749eb5344a861279d09499ad4 (patch)
treed4abd013c55398dbff76df1e123b70d7b55f7d07
parent7eef3293680d233198cb0a437c252a8b59af4b22 (diff)
Fix code error in ControllerImpl class
Put in correct check for null ListenerClass attribute Issue-ID: APPC-1463 Change-Id: I55cd4327f4718c320e3feaf71db7ac23f59a0986 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
-rw-r--r--appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/impl/ControllerImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/impl/ControllerImpl.java b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/impl/ControllerImpl.java
index 3368c5509..cc9c7181f 100644
--- a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/impl/ControllerImpl.java
+++ b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/impl/ControllerImpl.java
@@ -5,6 +5,8 @@
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
+ * ================================================================================
+ * Modifications Copyright (C) 2019 Ericsson
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -63,7 +65,7 @@ public class ControllerImpl implements Controller {
public ControllerImpl(Set<ListenerProperties> properties) {
listeners = new HashMap<ListenerProperties, Listener>();
for (ListenerProperties props : properties) {
- if (props.getClass() != null) {
+ if (props.getListenerClass() != null) {
listeners.put(props, null);
} else {
LOG.error(String.format(