diff --git a/Controller/ExportController.php b/Controller/ExportController.php
index <HASH>..<HASH> 100644
--- a/Controller/ExportController.php
+++ b/Controller/ExportController.php
@@ -113,7 +113,8 @@ class ExportController extends CommonController
                                     $fields
                                 );
                             }
-                            $ip = $lead->getIpAddresses()->last()->getIpAddress();
+                            $ipAddresses = $lead->getIpAddresses()->last();
+                            $ip = !IpAddresses ? '' : $ipAddresses->getIpAddress();
                             $values = [$id, $ip];
                             foreach ($fieldNames as $fieldName) {
                                 $values[] = $lead->getFieldValue($fieldName);
Fix Prod bug where no IP addresses exist for a lead