diff --git a/src/Query/UpdateOne.php b/src/Query/UpdateOne.php
index <HASH>..<HASH> 100644
--- a/src/Query/UpdateOne.php
+++ b/src/Query/UpdateOne.php
@@ -88,9 +88,11 @@ class UpdateOne extends Query
                 if ($this->dm->hasObject($this->document)) {
                     $this->dm->refresh($this->document);
                 }
-                $this->classMetadata->getEventManager()->execute(EventManager::EVENT_POST_UPDATE, $this->document);
-                if ($this->dm->hasObject($this->document)) {
-                    $this->repository->cacheObject($this->document);
+                if (null !== $this->document) {
+                    $this->classMetadata->getEventManager()->execute(EventManager::EVENT_POST_UPDATE, $this->document);
+                    if ($this->dm->hasObject($this->document)) {
+                        $this->repository->cacheObject($this->document);
+                    }
                 }
             }
         }
Fix bug when object was removed between to update