summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2018-10-23 00:33:34 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-23 00:33:34 +0000
commite2ee747819c3f3b822058bcc495b92d12fa5a2fc (patch)
treeebd33a09081bca2b93a28b2f5901eda413578098
parent3016153ba9aabbc8d84fd2620868952e72646988 (diff)
parent748f1ca148b4da50401eb9dfed92e8eef918a002 (diff)
Merge "Repaired an NPE"
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java2
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,