in my code there is a ddlitemid that can be null and in Linq query my code is like
valuecheck = _allQuestions.Where(x => x.nID == ddlItemId).FirstOrDefault().strName;
if ddlitemid not exist in my database it gives error i wants to handle null reference object error