Skip to content

Commit dd72729

Browse files
committed
[BUGFIX] Prevent exception on form submit "getContentObject() on null"
Resolves: #773
1 parent cf80662 commit dd72729

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

Classes/Finisher/SaveToAnyTableFinisher.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,12 @@
1010
use TYPO3\CMS\Extbase\Object\Exception;
1111
use TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotException;
1212
use TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotReturnException;
13-
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
1413

1514
/**
1615
* Class SaveToAnyTableFinisher
1716
*/
1817
class SaveToAnyTableFinisher extends AbstractFinisher implements FinisherInterface
1918
{
20-
21-
/**
22-
* @var ContentObjectRenderer
23-
*/
24-
protected $contentObject;
25-
2619
/**
2720
* @var array
2821
*/
@@ -234,13 +227,4 @@ public function initializeFinisher(): void
234227
$this->addArrayToDataArray($mailRepository->getVariablesWithMarkersFromMail($this->mail));
235228
}
236229
}
237-
238-
/**
239-
* @param ContentObjectRenderer $contentObject
240-
* @return void
241-
*/
242-
public function injectContentObject(ContentObjectRenderer $contentObject): void
243-
{
244-
$this->contentObject = $contentObject;
245-
}
246230
}

Classes/Finisher/SendParametersFinisher.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,11 @@
1515
*/
1616
class SendParametersFinisher extends AbstractFinisher implements FinisherInterface
1717
{
18-
1918
/**
2019
* @var ConfigurationManagerInterface
2120
*/
2221
protected $configurationManager;
2322

24-
/**
25-
* @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
26-
*/
27-
protected $contentObject = null;
28-
2923
/**
3024
* TypoScript configuration part sendPost
3125
*
@@ -129,8 +123,6 @@ protected function isEnabled(): bool
129123
*/
130124
public function initializeFinisher(): void
131125
{
132-
// @extensionScannerIgnoreLine Seems to be a false positive: getContentObject() is still correct in 9.0
133-
$this->contentObject = $this->configurationManager->getContentObject();
134126
$mailRepository = ObjectUtility::getObjectManager()->get(MailRepository::class);
135127
$this->contentObject->start($mailRepository->getVariablesWithMarkersFromMail($this->mail));
136128
$configurationService = ObjectUtility::getObjectManager()->get(ConfigurationService::class);

0 commit comments

Comments
 (0)