alibaba / alibaba/Sentinel

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

Open
#3,414 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

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

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.