Skip to content

Commit 3340257

Browse files
committed
null check performance analyzer on initialize
1 parent 3e2b078 commit 3340257

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/dev/faststats/SimpleContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected SimpleContext(final Factory<?, ?> factory, final Config config, final
5353

5454
@MustBeInvokedByOverriders
5555
protected final void initializeServices(final Factory<?, ?> factory) throws IllegalStateException {
56-
if (factory.metrics == null && factory.errorTracker == null && factory.featureFlagService == null)
56+
if (factory.metrics == null && factory.errorTracker == null && factory.featureFlagService == null && factory.performanceAnalyzer == null)
5757
throw new IllegalStateException("Context created without any service attached, was this intentional?");
5858

5959
this.metrics = config.submitMetrics() && factory.metrics != null ? factory.metrics.apply(metricsFactory()) : null;

0 commit comments

Comments
 (0)