We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261ebd0 commit 53f8e59Copy full SHA for 53f8e59
src/main/java/com/developerfromjokela/edison/web/rpc/server/CommunicationServer.java
@@ -48,7 +48,7 @@ public WebSocket getWebClientByLoginId(String loginId) {
48
public WebSocket getWebClientByUserID(String uuid, String loginId) {
49
for (WebSocket socket : getConnections()) {
50
ClientDetails details = socket.getAttachment();
51
- if (details.getClientType().equals(ClientDetails.TYPE_APP) && details.getCurrentLoginProcess().equals(loginId) && details.getUuid().equals(uuid)) {
+ if (details.getClientType().equals(ClientDetails.TYPE_APP) && (details.getCurrentLoginProcess() != null && details.getCurrentLoginProcess().equals(loginId)) && details.getUuid().equals(uuid)) {
52
return socket;
53
}
54
0 commit comments