aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src/main/java')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/XMPPConnection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
index 7a01c5017..bd801dd6f 100644
--- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
+++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
@@ -52,8 +52,8 @@ public class XMPPConnection implements AutoCloseable {
public XMPPConnection(
final Environment env, final WebsocketComponent wsHandler) {
- Assert.notNull(env);
- Assert.notNull(wsHandler);
+ Assert.notNull(env, "Environment must be initialized");
+ Assert.notNull(wsHandler, "WebsocketComponent must be initialized");
this.wsHandler = wsHandler;