System.Argument Null异常值不能为null参数名称:值 [英] System.Argument Null Exception Value cannot be null.Parameter name: value

查看:1278
本文介绍了System.Argument Null异常值不能为null参数名称:值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if (CaseStatusDay >= maxDays)
{
  if (currentrow != null)
  {
    currentrow.BeginEdit();
    if (showFlagCaseStatus.Contains(currentCaseStatus))
    {
      currentrow["CaseStatusFlag"] = "~/Images/flag_red.png";

      if (webSession.GetVariable("LoginCompanyType") == "CCCS")
      {
        if (e.Row.Cells.Count >= 13)
        {
          e.Row.Cells[12].Attributes.Add("onmouseover", "tooltip('Case has not been statused in the last " + maxdaysdispay + " days')");
          e.Row.Cells[12].Attributes.Add("onmouseout", "exit();");
        }
      }
      else if (webSession.GetVariable("LoginCompanyType") == "VEND" || webSession.GetVariable("LoginCompanyType") == "INS")
      {
        if (e.Row.Cells.Count >= 14)
        {
          e.Row.Cells[13].Attributes.Add("onmouseover", "tooltip('Case has not been statused in the last " + maxdaysdispay + " days')");
          e.Row.Cells[13].Attributes.Add("onmouseout", "exit();");
        }
      }
    }
  }
}

推荐答案

由于我们无法访问您的环境,因此上述代码对我们无能为力.
最好的答案是在运行时在调试器中打开代码,并查看从何处获取空值.
There is very little we can do for you with the above code as we do not have access to your environment.

The best answer is open your code in a debugger while running and see where you are getting the null value.


这篇关于System.Argument Null异常值不能为null参数名称:值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆