Traceback (most recent call last):


 "/home/frappe/dev-bench/apps/frappe/frappe/app.py", line 61, in application

response = frappe.handler.handle()


 "/home/frappe/dev-bench/apps/frappe/frappe/handler.py", line 21, in handle

data = execute_cmd(cmd)


 "/home/frappe/dev-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd

return frappe.call(method, **frappe.form_dict)


 "/home/frappe/dev-bench/apps/frappe/frappe/__init__.py", line 1007, in call

return fn(*args, **newargs)


 "/home/frappe/dev-bench/apps/erpnext/erpnext/selling/page/point_of_sale/point_of_sale.py", 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'

Traceback (most recent call last):


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 117, in run_hooks

hook()


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 65, in __call__

return self.callback(**self.kwargs)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/sessions.py", line 834, in init

set_response_cookie(path=path, path_header=path_header, name=name,


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/sessions.py", line 875, in set_response_cookie

cherrypy.serving.request.headers.get(path_header) or


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/httputil.py", line 425, in get

key = self.transform_key(key)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/httputil.py", line 460, in transform_key

return key.title()
AttributeError: 'NoneType' object has no attribute 'title'
