From 748f1ca148b4da50401eb9dfed92e8eef918a002 Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Tue, 23 Oct 2018 08:14:23 +0800 Subject: Repaired an NPE Change-Id: Ida83327c07138d5169b95537dfbbbc1d7d3d3116 Issue-ID: HOLMES-175 Signed-off-by: GuangrongFu --- rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rulemgt/src/main/java') diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java index 544d338..cd346de 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java @@ -61,7 +61,7 @@ public class RuleActiveApp 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