diff --git a/src/main/java/org/mariadb/jdbc/MariaDbConnection.java b/src/main/java/org/mariadb/jdbc/MariaDbConnection.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/mariadb/jdbc/MariaDbConnection.java
+++ b/src/main/java/org/mariadb/jdbc/MariaDbConnection.java
@@ -1538,9 +1538,6 @@ public class MariaDbConnection implements Connection {
         if (securityManager != null && sqlPermission != null) {
             securityManager.checkPermission(sqlPermission);
         }
-        if (executor == null) {
-            throw ExceptionMapper.getSqlException("Cannot set the connection timeout: null executor passed");
-        }
         try {
             protocol.setTimeout(milliseconds);
         } catch (SocketException se) {
[CONJ-<I>] Connection.setNetworkTimeout executor must not be mandatory