aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common
diff options
context:
space:
mode:
authorWojciech Sliwka <wojciech.sliwka@nokia.com>2018-08-23 13:00:08 +0200
committerWojciech Sliwka <wojciech.sliwka@nokia.com>2018-08-23 13:03:45 +0200
commiteea1c99fcc1ec5a0587f60fe7ac5ba96e186ca81 (patch)
treea1e797b3a34dfea82064bba70597effaf0961f7c /vid-app-common
parentdf5c2a05532cfb04dc3b08205145e38cecf0ed65 (diff)
Fix NPE in VID UI
Change-Id: Iff006622e6d46c3f3e15c662bf6c28f246cf40e1 Issue-ID: VID-294 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
Diffstat (limited to 'vid-app-common')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/controllers/WebConfig.java7
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java1
2 files changed, 7 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/controllers/WebConfig.java b/vid-app-common/src/main/java/org/onap/vid/controllers/WebConfig.java
index 98c0c3833..cf32e92e0 100644
--- a/vid-app-common/src/main/java/org/onap/vid/controllers/WebConfig.java
+++ b/vid-app-common/src/main/java/org/onap/vid/controllers/WebConfig.java
@@ -30,6 +30,8 @@ import org.onap.vid.asdc.parser.ToscaParserImpl2;
import org.onap.vid.asdc.rest.RestfulAsdcClient;
import org.onap.vid.exceptions.GenericUncheckedException;
import org.onap.vid.properties.AsdcClientConfiguration;
+import org.onap.vid.scheduler.SchedulerRestInterface;
+import org.onap.vid.scheduler.SchedulerRestInterfaceIfc;
import org.onap.vid.services.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
@@ -162,4 +164,9 @@ public class WebConfig {
public PombaClientInterface getVerifyServiceInstanceClientInterface() {
return new PombaClientImpl();
}
+
+ @Bean
+ public SchedulerRestInterfaceIfc getSchedulerRestInterface(){
+ return new SchedulerRestInterface();
+ }
}
diff --git a/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java
index 9a7522b52..d66ed4947 100644
--- a/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java
+++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java
@@ -37,7 +37,6 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc {
private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SchedulerRestInterface.class);
final private static EELFLogger outgoingRequestsLogger = Logging.getRequestsLogger("scheduler");
- @Autowired
public SchedulerRestInterface(){
this.propertyGetter = SystemProperties::getProperty;
}