Skip to content

Commit 27408e9

Browse files
committed
#1322: Fix object comparing using Objects.equals()
1 parent 91215b2 commit 27408e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/service/AuthenticationApiServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected Connection getAuthConnection(AuthUser authUser, User user) {
228228
return user.getConnections()
229229
.stream()
230230
.filter(connection -> authUser.getSource().equals(connection.getSource())
231-
&& connection.getRawId().equals(authUser.getUid()))
231+
&& Objects.equals(connection.getRawId(), authUser.getUid()))
232232
.findFirst()
233233
.get();
234234
}

0 commit comments

Comments
 (0)