请问一下空指针异常是什么原因。
@IocBean
@At("/sbztxx")
@Filters
public class action {
@Inject
protected Dao dao;
Log log = Logs.get();
@At
public Object insert(@Param("naturename")String name,@Param("idcard")String idCard,@Param("sqraddress")String sqrAddress,@Param("lxr")String lxrName,@Param("lxrsj")String lxrSj, QfgCompanyInfo qci,HttpServletRequest request, HttpSession session) {
qci.setStNatureName(name);
qci.setStIdCard(idCard);
qci.setStApplyAddress(sqrAddress);
qci.setStContactName(lxrName);
qci.setStContactCellPhone(lxrSj);
qci = dao.insert(qci);
return qci;
}
}