From da95cbd0e78fbeb1056f1fbc2bc7005deacd3757 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Nov 2018 14:03:02 +0300 Subject: fix NPE in MessageReadEvent logging --- juick-server/src/main/java/com/juick/server/ServerManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com') 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); -- cgit v1.2.3