Error While scanning barcode in v11 (online-pos)

The following error comes up when trying to scan via barcode field ,

here is the stack trace,

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 56, in execute_cmd
return, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 1007, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/selling/page/point_of_sale/”, line 27, in get_items
item_code = data.get(“item_code”) if data.get(“item_code”) else search_value
AttributeError: ‘NoneType’ object has no attribute ‘get’