Skip to content

Commit 53f8e59

Browse files
Added yet another fix to almost same problem
1 parent 261ebd0 commit 53f8e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/developerfromjokela/edison/web/rpc/server/CommunicationServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public WebSocket getWebClientByLoginId(String loginId) {
4848
public WebSocket getWebClientByUserID(String uuid, String loginId) {
4949
for (WebSocket socket : getConnections()) {
5050
ClientDetails details = socket.getAttachment();
51-
if (details.getClientType().equals(ClientDetails.TYPE_APP) && details.getCurrentLoginProcess().equals(loginId) && details.getUuid().equals(uuid)) {
51+
if (details.getClientType().equals(ClientDetails.TYPE_APP) && (details.getCurrentLoginProcess() != null && details.getCurrentLoginProcess().equals(loginId)) && details.getUuid().equals(uuid)) {
5252
return socket;
5353
}
5454
}

0 commit comments

Comments
 (0)