Get_doc() issue

i tried bu below statement showing null

var x= frappe.get_doc(‘Customer’, cur_frm.doc.bu_name)
whats i m doing wrong please help me

Check what value are you passing in cur_frm.doc.bu_name and also try using frm.doc.bu_name