File tree Expand file tree Collapse file tree
Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,11 @@ protected function flushQueuesIfNeeded() {
114114 public function flushQueues () {
115115 /** @var \TYPO3\TYPO3CR\Domain\Model\NodeInterface $nodeToBeIndexed */
116116 foreach ($ this ->nodesToBeIndexed as $ nodeToBeIndexed ) {
117- $ this ->nodeIndexer ->indexNode ($ nodeToBeIndexed , $ this ->targetWorkspaceNamesForNodesToBeIndexed [$ nodeToBeIndexed ->getContextPath ()]);
117+ if (!isset ($ this ->targetWorkspaceNamesForNodesToBeIndexed [$ nodeToBeIndexed ->getContextPath ()])) {
118+ // No target workspace for indexing found
119+ continue ;
120+ }
121+ $ this ->nodeIndexer ->indexNode ($ nodeToBeIndexed , $ this ->targetWorkspaceNamesForNodesToBeIndexed [$ nodeToBeIndexed ->getWorkspace ()->getName ()]);
118122 }
119123
120124 foreach ($ this ->nodesToBeRemoved as $ nodeToBeRemoved ) {
You can’t perform that action at this time.
0 commit comments