Skip to content

Commit

Permalink
feat: Mixer lazy load
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinten10 committed Dec 7, 2021
1 parent 6b2964c commit f10b608
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ public static ConfigurationHooks configurationHooks() {
* @return the configuration hooks
*/
public static Optional<ConfigurationHooks> configurationHooksNullable() {
return Optional.ofNullable(configurationHooks.get());
return Optional.ofNullable(configurationHooks != null
? configurationHooks.get()
: null);
}

/**
Expand All @@ -123,6 +125,8 @@ public static TelemetryHooks telemetryHooks() {
* @return the telemetry hooks
*/
public static Optional<TelemetryHooks> telemetryHooksNullable() {
return Optional.ofNullable(telemetryHooks.get());
return Optional.ofNullable(telemetryHooks != null
? telemetryHooks.get()
: null);
}
}

0 comments on commit f10b608

Please sign in to comment.