Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huangyunbin opened this issue Jun 7, 2024 · 1 comment
Open

Comments

@huangyunbin
Copy link

huangyunbin commented Jun 7, 2024

 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没有配置规则的时候,就会触发。

@Daydreamer-ia
Copy link

it seems that it will not cause npe here, because of the return of PARAM_FLOW_RULES.get(resourceName) will be empty list if not rule configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants