diff --git a/redisson/src/main/java/org/redisson/RedissonObject.java b/redisson/src/main/java/org/redisson/RedissonObject.java
index c3f102816..81ecbe2be 100644
--- a/redisson/src/main/java/org/redisson/RedissonObject.java
+++ b/redisson/src/main/java/org/redisson/RedissonObject.java
@@ -49,6 +49,9 @@ public abstract class RedissonObject implements RObject {
         this.codec = codec;
         this.name = name;
         this.commandExecutor = commandExecutor;
+        if (name == null) {
+            throw new NullPointerException("name can't be null");
+        }
     }
 
     public RedissonObject(CommandAsyncExecutor commandExecutor, String name) {