Merge branch 'master' into staging
diff --git a/erpnext/__init__.py b/erpnext/__init__.py
index 542743d..70ae35a 100644
--- a/erpnext/__init__.py
+++ b/erpnext/__init__.py
@@ -4,7 +4,7 @@
 import frappe
 from erpnext.hooks import regional_overrides
 
-__version__ = '8.10.1'
+__version__ = '8.10.2'
 
 def get_default_company(user=None):
 	'''Get default company for user'''
diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py
index c12cd44..52dcb73 100644
--- a/erpnext/selling/doctype/customer/customer.py
+++ b/erpnext/selling/doctype/customer/customer.py
@@ -90,6 +90,9 @@
 
 			lead = frappe.db.get_value("Lead", self.lead_name, ["lead_name", "email_id", "phone", "mobile_no", "gender", "salutation"], as_dict=True)
 
+			if not lead.lead_name:
+				frappe.throw(_("Please mention the Lead Name in Lead {0}").format(self.lead_name))
+
 			lead.lead_name = lead.lead_name.split(" ")
 			lead.first_name = lead.lead_name[0]
 			lead.last_name = " ".join(lead.lead_name[1:])