Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 7:  	if(Product != null) {
Line 8:  		var Dept = iStar.GetDept((string)Product["DeptCode"]);
Line 9:  		var pdContentCSS = "/istar/css/pdContent-" + Dept["Layout"] + ".css";
Line 10: 
Line 11: 		@section CSS {

Source File: c:\Inetpub\wwwroot\ProductDetail.cshtml    Line: 9

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_ProductDetail_cshtml.Execute() in c:\Inetpub\wwwroot\ProductDetail.cshtml:9
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +208
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +123
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +67
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +121

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031