Skip to content

Commit

Permalink
Merge pull request #81 from dgzpg/feature/metrics
Browse files Browse the repository at this point in the history
merge master
  • Loading branch information
dgzpg authored Dec 7, 2021
2 parents b649a3d + 782ff25 commit e873b73
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 e873b73

Please sign in to comment.