# After update issue

**URL:** https://forum.mautic.org/t/after-update-issue/6840
**Category:** Product Support
**Created:** [December 13, 2016, 10:59am UTC](https://forum.mautic.org/t/after-update-issue/6840 "2016-12-13T10:59:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bellsouthwest](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bellsouthwest](https://forum.mautic.org/u/bellsouthwest)
#### Post date: [December 13, 2016, 10:59am UTC](https://forum.mautic.org/t/after-update-issue/6840/1 "2016-12-13T10:59:36Z")

</div>

Getting alot of this? Anyideas?  
  
  
  
(#1893) Catchable Fatal Error: Argument 1 passed to Proxies\_\_CG\_\_MauticLeadBundleEntityLead::addTag() must be an instance of MauticLeadBundleEntityTag, null given, called in /opt/bitnami/apps/mautic/htdocs/app/bundles/LeadBundle/Model/LeadModel.php on line 1904 and defined

---

<div class="post-metadata">

### Author: ![bellsouthwest](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bellsouthwest](https://forum.mautic.org/u/bellsouthwest)
#### Post date: [December 13, 2016, 10:59am UTC](https://forum.mautic.org/t/after-update-issue/6840/2 "2016-12-13T10:59:36Z")

</div>

Getting alot of this? Anyideas?

(#1893) Catchable Fatal Error: Argument 1 passed to Proxies\_\_CG\_\_MauticLeadBundleEntityLead::addTag() must be an instance of MauticLeadBundleEntityTag, null given, called in /opt/bitnami/apps/mautic/htdocs/app/bundles/LeadBundle/Model/LeadModel.php on line 1904 and defined

---

<div class="post-metadata">

### Author: ![jeremy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeremy](https://forum.mautic.org/u/jeremy)
#### Post date: [December 13, 2016, 3:00pm UTC](https://forum.mautic.org/t/after-update-issue/6840/3 "2016-12-13T15:00:03Z")

</div>

I worked around this so I could finish an import with the following hack:

```auto
index b095f92..dbde105 100644
--- a/app/bundles/LeadBundle/Model/LeadModel.php
+++ b/app/bundles/LeadBundle/Model/LeadModel.php
@@ -1901,8 +1901,10 @@ class LeadModel extends FormModel
                     $tagToBeAdded = $foundTags[$tag];
                 }
 
+if ($tagToBeAdded !== NULL) {
                 $lead->addTag($tagToBeAdded);
                 $tagsModified = true;
+}
 
                 $this->logger->debug('CONTACT: Added '.$tag);
             }
```
