File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
sdk-infrastructure/src/main/java/group/rxcloud/capa/infrastructure/hook Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ public static ConfigurationHooks configurationHooks() {
102102 * @return the configuration hooks
103103 */
104104 public static Optional <ConfigurationHooks > configurationHooksNullable () {
105- return Optional .ofNullable (configurationHooks .get ());
105+ return Optional .ofNullable (configurationHooks != null
106+ ? configurationHooks .get ()
107+ : null );
106108 }
107109
108110 /**
@@ -123,6 +125,8 @@ public static TelemetryHooks telemetryHooks() {
123125 * @return the telemetry hooks
124126 */
125127 public static Optional <TelemetryHooks > telemetryHooksNullable () {
126- return Optional .ofNullable (telemetryHooks .get ());
128+ return Optional .ofNullable (telemetryHooks != null
129+ ? telemetryHooks .get ()
130+ : null );
127131 }
128132}
You can’t perform that action at this time.
0 commit comments