diff --git a/src/DatabaseExporter.php b/src/DatabaseExporter.php
index d576499f7..ea3793d89 100644
--- a/src/DatabaseExporter.php
+++ b/src/DatabaseExporter.php
@@ -302,7 +302,7 @@ protected function buildXmlData()
{
if (!in_array($key, $colblob))
{
- $buffer[] = ' ' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '';
+ $buffer[] = ' ' . htmlspecialchars($value ?? '', ENT_COMPAT, 'UTF-8') . '';
}
else
{