Skip to content

Commit

Permalink
Fix potential NPE in MicrometerRecorder
Browse files Browse the repository at this point in the history
Fixes: quarkusio#35443
(cherry picked from commit a8b1641)
  • Loading branch information
geoand authored and gsmet committed Aug 26, 2023
1 parent c9265e3 commit 75cd41d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public void configureRegistries(MicrometerConfig config,
Class<?> registryClass = registry.getClass();
applyMeterFilters(registry, classMeterFilters.get(registryClass));

var classSpecificCustomizers = classMeterRegistryCustomizers.get(registryClass);
var classSpecificCustomizers = classMeterRegistryCustomizers.getOrDefault(registryClass,
Collections.emptyList());
var newList = new ArrayList<MeterRegistryCustomizer>(
globalMeterRegistryCustomizers.size() + classSpecificCustomizers.size());
newList.addAll(globalMeterRegistryCustomizers);
Expand Down

0 comments on commit 75cd41d

Please sign in to comment.