summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-10-23 08:15:44 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-10-23 08:15:44 +0800
commitf37f55b899a47b78b78fc7814b161a50cb2b6cd6 (patch)
treecbeb3f004f1f82a45f1e9fe58b5bd01d392fa2c9
parentd5862631acd4b2f1ad72e5cd8b8d865c3c5be68d (diff)
Repaired an NPE
Change-Id: I757c467a422eb3226c453876de6c511a50c40440 Issue-ID: HOLMES-175 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java
index 7066646..67ea418 100644
--- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java
+++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java
@@ -54,7 +54,7 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
log.warn(e.getMessage(), e);
}
- if (!System.getenv("TESTING").equals("1")) {
+ if (!"1".equals(System.getenv("TESTING"))) {
ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();
service.scheduleAtFixedRate(
new DcaeConfigurationPolling(MicroServiceConfig.getEnv(MicroServiceConfig.HOSTNAME)), 0,