aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-01 14:03:02 +0300
committerGravatar Vitaly Takmazov2018-11-01 14:03:02 +0300
commitda95cbd0e78fbeb1056f1fbc2bc7005deacd3757 (patch)
tree3727b04b53f42f25e1d9587c5ef718d2e806f24d /juick-server/src/main/java/com/juick/server
parent1119d6f0024fd43e8b75acfb420a1c31bb7503a2 (diff)
fix NPE in MessageReadEvent logging
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r--juick-server/src/main/java/com/juick/server/ServerManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/ServerManager.java b/juick-server/src/main/java/com/juick/server/ServerManager.java
index c809cfb4..0641e05a 100644
--- a/juick-server/src/main/java/com/juick/server/ServerManager.java
+++ b/juick-server/src/main/java/com/juick/server/ServerManager.java
@@ -219,7 +219,7 @@ public class ServerManager implements NotificationListener {
User user = messageReadEvent.getUser();
Message source = messageReadEvent.getMessage();
- logger.info("Message read event from {} for {}", user.getName(), source.getMid());
+ logger.info("Message read event from {} for {}", user.getUid(), source.getMid());
Message serviceMessage = new Message();
serviceMessage.setService(true);
serviceMessage.setUser(user);