diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index 8ecac0bba..45e61a735 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -1085,7 +1085,10 @@ EOF { foreach ($aAttributes as $sAttribute => $value) { - $oDelta->documentElement->setAttribute($sAttribute, $value); + if ($oDelta->documentElement) // yes, this may happen when still no change has been performed (and a module has been selected for installation) + { + $oDelta->documentElement->setAttribute($sAttribute, $value); + } } } return $oDelta;