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
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没有配置规则的时候,就会触发。
The text was updated successfully, but these errors were encountered:
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.
PARAM_FLOW_RULES.get(resourceName)
当PARAM_FLOW_RULES.get(resourceName)为null的时候, new ArrayList就会报空指针异常。
这个在对应的resourceName没有配置规则的时候,就会触发。
The text was updated successfully, but these errors were encountered: