diff options
author | Vitaly Takmazov | 2018-08-09 15:45:29 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-08-09 15:45:29 +0300 |
commit | 1ebcbfdd88495b9fac7bef776e87e8bc9b26a043 (patch) | |
tree | 0bba24168cac42a094871c26d5d2c7a96f2ea864 /juick-server/src | |
parent | 830daff160930fa185d5b8ffdc64516d1ef03218 (diff) |
Fix NPE
Diffstat (limited to 'juick-server/src')
-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() { |