diff --git a/html/typo3conf/ext/ter/Classes/Exception/NoUploadCommentException.php b/html/typo3conf/ext/ter/Classes/Exception/NoUploadCommentException.php
new file mode 100644
index 0000000000000000000000000000000000000000..36c6f203acdcdfcc97d8342dd48e1aa933c520e3
--- /dev/null
+++ b/html/typo3conf/ext/ter/Classes/Exception/NoUploadCommentException.php
@@ -0,0 +1,20 @@
+infoData->uploadComment === '') {
+ throw new \T3o\Ter\Exception\NoUploadCommentException(
+ 'You need to set an upload comment!',
+ TX_TER_ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT
+ );
+ }
+
if (($typo3DependencyCheck = static::checkExtensionDependencyOnSupportedTypo3Version($extensionInfoData)) !== true && $uploadUserRecordArr['admin'] !== true) {
switch ($typo3DependencyCheck) {
case TX_TER_ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYINCORRECT:
@@ -982,7 +989,7 @@ class tx_ter_api
$extensionDetailsRow = [
'pid' => (int)$this->parentObj->extensionsPID,
'extensionuid' => (int)$extensionUid,
- 'uploadcomment' => $extensionInfoData->infoData->uploadComment,
+ 'uploadcomment' => (string)$extensionInfoData->infoData->uploadComment,
'lastuploadbyusername' => $accountData->username,
'lastuploaddate' => $GLOBALS['SIM_EXEC_TIME'],
'datasize' => $extensionInfoData->infoData->dataSize,
diff --git a/html/typo3conf/ext/ter/class.tx_ter_helper.php b/html/typo3conf/ext/ter/class.tx_ter_helper.php
index 3d299c132adf535992cadd147715bbc791016dac..e96c2078bf2c65ad9be6a79e47c4ca9d4ae933a1 100755
--- a/html/typo3conf/ext/ter/class.tx_ter_helper.php
+++ b/html/typo3conf/ext/ter/class.tx_ter_helper.php
@@ -62,6 +62,7 @@ define('TX_TER_ERROR_UPLOADEXTENSION_ACCESSDENIED', '208');
define('TX_TER_ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYINCORRECT', '209');
define('TX_TER_ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYCHECKFAILED', '210');
define('TX_TER_ERROR_UPLOADEXTENSION_EXTENSIONVERSIONEXISTS', '211');
+define('TX_TER_ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT', '212');
define('TX_TER_ERROR_REGISTEREXTENSIONKEY_DBERRORWHILEINSERTINGKEY', '300');