Commit d6c7eff8 authored by Stephane Nicoll's avatar Stephane Nicoll

Add check for empty values for lookup

Closes gh-13419
parent 714f3dea
......@@ -74,6 +74,9 @@ public class PropertiesMeterFilter implements MeterFilter {
}
private <T> T lookup(Map<String, T> values, Id id, T defaultValue) {
if (values.isEmpty()) {
return defaultValue;
}
String name = id.getName();
while (StringUtils.hasLength(name)) {
T result = values.get(name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment