diff options
author | tang peng <tang.peng5@zte.com.cn> | 2018-10-23 00:33:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-23 00:33:34 +0000 |
commit | e2ee747819c3f3b822058bcc495b92d12fa5a2fc (patch) | |
tree | ebd33a09081bca2b93a28b2f5901eda413578098 | |
parent | 3016153ba9aabbc8d84fd2620868952e72646988 (diff) | |
parent | 748f1ca148b4da50401eb9dfed92e8eef918a002 (diff) |
Merge "Repaired an NPE"
-rw-r--r-- | rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<RuleAppConfig> { 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, |