diff --git a/src/main/java/com/eactive/eai/common/inflow/InflowControlDAO.java b/src/main/java/com/eactive/eai/common/inflow/InflowControlDAO.java index f8f8838..6890cd8 100644 --- a/src/main/java/com/eactive/eai/common/inflow/InflowControlDAO.java +++ b/src/main/java/com/eactive/eai/common/inflow/InflowControlDAO.java @@ -104,8 +104,9 @@ public class InflowControlDAO extends BaseDAO { for (InflowControl inflowControl : inflowControls) { InflowTargetVO vo = new InflowTargetVO(); vo.setName(inflowControl.getId().getName()); - vo.setThreshold(inflowControl.getThreshold()); - vo.setThresholdPerSecond(inflowControl.getThresholdpersecond()); + vo.setThreshold(inflowControl.getThreshold() == null ? 0 : inflowControl.getThreshold()); + vo.setThresholdPerSecond( + inflowControl.getThresholdpersecond() == null ? 0 : inflowControl.getThresholdpersecond()); vo.setThresholdTimeUnit(inflowControl.getThresholdtimeunit()); vo.setActivate(!"0".equals(inflowControl.getUseyn())); targetList.put(vo.getName(), vo);