diff --git a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java index 67810caa..28d5a712 100644 --- a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java +++ b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java @@ -63,7 +63,11 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl { /** * The Dp bypass manager. */ - private DpBypassManager dpBypassManager; + private DpBypassManager dpBypassManager = DpBypassManager.builder() + .protectObject(new Hashtable<>()) + .protectStrategy(new Hashtable<>()) + .tractionStrategyName(new Hashtable<>()) + .build(); /** * The Timer cnt. */ @@ -726,11 +730,6 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl { */ @Override public void initDeviceEnv(String urlPath, String username, String password) { - dpBypassManager = DpBypassManager.builder() - .protectObject(new Hashtable<>()) - .protectStrategy(new Hashtable<>()) - .tractionStrategyName(new Hashtable<>()) - .build(); super.initDeviceEnv(urlPath, username, password); // 获取所有清洗设备