diff --git a/include/staff/templates/dynamic-form.tmpl.php b/include/staff/templates/dynamic-form.tmpl.php
index 8d725dece67078da3e8fbba1b7578fc84e32d4ab..47be9addf0baadfec50f94f42d320d15ac6a3728 100644
--- a/include/staff/templates/dynamic-form.tmpl.php
+++ b/include/staff/templates/dynamic-form.tmpl.php
@@ -77,7 +77,7 @@ if (isset($options['entry']) && $options['mode'] == 'edit') { ?>
                 ?>" data-entry-id="<?php echo $field->getAnswer()->get('entry_id');
                 ?>"> <i class="icon-trash"></i> </a></div><?php
             }
-            if (!$a->getValue() && $field->isRequiredForClose()) {
+            if ($a && !$a->getValue() && $field->isRequiredForClose()) {
 ?><i class="icon-warning-sign help-tip warning"
     data-title="<?php echo __('Required to close ticket'); ?>"
     data-content="<?php echo __('Data is required in this field in order to close the related ticket'); ?>"