only in patch2: unchanged: --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -209,7 +209,7 @@ protected function doCreate(array $values) { * {@inheritdoc} */ public function load($id) { - $entities = $this->loadMultiple(array($id)); + $entities = $id ? $this->loadMultiple(array($id)) : []; return isset($entities[$id]) ? $entities[$id] : NULL; } only in patch2: unchanged: --- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php @@ -569,9 +569,11 @@ protected function loadFromSharedTables(array &$values, array &$translations) { protected function doLoadRevisionFieldItems($revision_id) { $revision = NULL; - // Build and execute the query. - $query_result = $this->buildQuery(array(), $revision_id)->execute(); - $records = $query_result->fetchAllAssoc($this->idKey); + if ($revision_id) { + // Build and execute the query. + $query_result = $this->buildQuery(array(), $revision_id)->execute(); + $records = $query_result->fetchAllAssoc($this->idKey); + } if (!empty($records)) { // Convert the raw records to entity objects.