Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential NPE in MicrometerRecorder
Browse files Browse the repository at this point in the history
Fixes: quarkusio#35443
(cherry picked from commit a8b1641)
geoand authored and gsmet committed Aug 26, 2023
1 parent 838847c commit 5db9a29
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 5db9a29

Please sign in to comment.