diff --git a/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedPlugin.java b/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedPlugin.java
index <HASH>..<HASH> 100644
--- a/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedPlugin.java
+++ b/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedPlugin.java
@@ -787,7 +787,10 @@ public class ODistributedPlugin extends OServerPluginAbstract
             this, this.nodeName, iNodes.toString(), OUT, "Sent request %s", iRequest);
 
       if (databaseName != null) {
-        getMessageService().getDatabase(databaseName).incSentRequest();
+        ODistributedDatabaseImpl shared = getMessageService().getDatabase(databaseName);
+        if (shared != null) {
+          shared.incSentRequest();
+        }
       }
 
       if (iExecutionMode == ODistributedRequest.EXECUTION_MODE.RESPONSE)
fix: minor fix in distributed stat collecting logic