-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
area/hotspot-param-flowIssues or PRs related to "hot-spot" param flow controlIssues or PRs related to "hot-spot" param flow controlgood first issueGood for newcomersGood for newcomerskind/bugCategory issues or prs related to bug.Category issues or prs related to bug.
Milestone
Description
Type: bug report
Describe what happened (or what feature you want)
when update ParamFlowRule with ParamFlowRuleManager.loadRules()
if one of the resource has not bean requested before(there is no metric found),then NPE occurs
the code is here:[ParameterMetricStorage.getParamMetricForResource(resource).clearForRule(rule);]
Describe what you expected to happen
judge if the metric is null or not...
How to reproduce it (as minimally and precisely as possible)
- init a api resource with ParamRuleManager
- update that before that has been requested
Tell us your environment
1.8.0
Anything else we need to know?
Metadata
Metadata
Assignees
Labels
area/hotspot-param-flowIssues or PRs related to "hot-spot" param flow controlIssues or PRs related to "hot-spot" param flow controlgood first issueGood for newcomersGood for newcomerskind/bugCategory issues or prs related to bug.Category issues or prs related to bug.