From 5b78f8180335d865650633dc8d7d5b9139e6182e Mon Sep 17 00:00:00 2001 From: Philippe Court Date: Wed, 24 Oct 2018 11:39:08 +0200 Subject: [PATCH] [BUGFIX] on clear cache during fill in the form --- Classes/ConfigurationObjectMapper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/ConfigurationObjectMapper.php b/Classes/ConfigurationObjectMapper.php index 3547e72..4929fc5 100644 --- a/Classes/ConfigurationObjectMapper.php +++ b/Classes/ConfigurationObjectMapper.php @@ -136,7 +136,9 @@ protected function doMapping($source, $targetType, PropertyMappingConfigurationI if (null === $this->configurationObjectConversionDTO->getResult()) { $result = $typeConverter->convertFrom($source, $targetType, $convertedChildProperties); - $this->configurationObjectConversionDTO->setResult($result); + if (null !== $this->configurationObjectConversionDTO) { + $this->configurationObjectConversionDTO->setResult($result); + } } $this->serviceFactory->runServicesFromEvent(ObjectConversionAfterServiceEventInterface::class, 'objectConversionAfter', $this->configurationObjectConversionDTO);