File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
spring-vault-core/src/main/java/org/springframework/vault/config Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5050 <spring .version>7.0.0-RC1</spring .version>
5151 <spring-data-bom .version>2025.1.0-M6</spring-data-bom .version>
5252 <spring-security-bom .version>7.0.0-M3</spring-security-bom .version>
53- <reactor .version>2025.0.0-M5 </reactor .version>
53+ <reactor .version>2025.0.0-RC1 </reactor .version>
5454
5555 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
5656 <java .version>17</java .version>
Original file line number Diff line number Diff line change @@ -249,7 +249,14 @@ public ReactiveSessionManagerAdapter(ReactiveSessionManager sessionManager) {
249249
250250 @ Override
251251 public VaultToken getSessionToken () {
252- return this .sessionManager .getSessionToken ().block (Duration .ofSeconds (30 ));
252+
253+ VaultToken token = this .sessionManager .getSessionToken ().block (Duration .ofSeconds (30 ));
254+
255+ if (token == null ) {
256+ throw new IllegalStateException ("Failed to obtain VaultToken from ReactiveSessionManager" );
257+ }
258+
259+ return token ;
253260 }
254261
255262 }
You can’t perform that action at this time.
0 commit comments