summaryrefslogtreecommitdiffstats
path: root/rulemgt/src/main/java
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-10-23 08:14:23 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-10-23 08:14:23 +0800
commit748f1ca148b4da50401eb9dfed92e8eef918a002 (patch)
tree9ab1111cc440b82124061a7922e4c9e383c1890c /rulemgt/src/main/java
parent65a3152a7eb870b0f01c95f0dcc59ee4950b53d3 (diff)
Repaired an NPE
Change-Id: Ida83327c07138d5169b95537dfbbbc1d7d3d3116 Issue-ID: HOLMES-175 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src/main/java')
-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,