aboutsummaryrefslogtreecommitdiff
path: root/juick-server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-09 15:45:29 +0300
committerGravatar Vitaly Takmazov2018-08-09 15:45:29 +0300
commit1ebcbfdd88495b9fac7bef776e87e8bc9b26a043 (patch)
tree0bba24168cac42a094871c26d5d2c7a96f2ea864 /juick-server
parent830daff160930fa185d5b8ffdc64516d1ef03218 (diff)
Fix NPE
Diffstat (limited to 'juick-server')
-rw-r--r--juick-server/src/main/java/com/juick/server/xmpp/router/Stream.java4
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() {