Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

[BUG] ParamFlowRuleManager的getRulesOfResource会有空指针异常

Open huangyunbin opened this issue 8 months ago • 1 comments

 public static List<ParamFlowRule> getRulesOfResource(String resourceName) {
        return new ArrayList((Collection)PARAM_FLOW_RULES.get(resourceName));
    }

当PARAM_FLOW_RULES.get(resourceName)为null的时候, new ArrayList就会报空指针异常。 这个在对应的resourceName没有配置规则的时候,就会触发。

huangyunbin avatar Jun 07 '24 01:06 huangyunbin