From f37f55b899a47b78b78fc7814b161a50cb2b6cd6 Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Tue, 23 Oct 2018 08:15:44 +0800 Subject: Repaired an NPE Change-Id: I757c467a422eb3226c453876de6c511a50c40440 Issue-ID: HOLMES-175 Signed-off-by: GuangrongFu --- engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { 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, -- cgit 1.2.3-korg