diff options
Diffstat (limited to 'juick-server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java | 4 |
1 files changed, 3 insertions, 1 deletions
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() { |