From 1ebcbfdd88495b9fac7bef776e87e8bc9b26a043 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 9 Aug 2018 15:45:29 +0300 Subject: Fix NPE --- juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-server') diff --git a/juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java b/juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java index 4319bee7..2154edf6 100644 --- a/juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java +++ b/juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java @@ -156,7 +156,9 @@ public abstract class Stream { } catch (Exception e) { } } - streamHandler.fail(ex); + if (streamHandler != null) { + streamHandler.fail(ex); + } } public Instant getCreated() { -- cgit v1.2.3