We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8f365 commit 27423b4Copy full SHA for 27423b4
spring-boot-utils/utils-base/src/main/java/in/hocg/boot/utils/context/UserContextHolder.java
@@ -30,7 +30,7 @@ public static void setIgnoreTenant(Boolean ignore) {
30
}
31
32
public static Optional<? extends UserDetail> getUserDetail() {
33
- return Optional.of(USER_DETAIL.get());
+ return Optional.ofNullable(USER_DETAIL.get());
34
35
36
public static <T extends UserDetail> void setUserDetail(T userDetail) {
0 commit comments