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 124:
Line 125:	templateBuilder.Append("\">产品展示</a>");
Line 126:	templateBuilder.Append(get_category_menu("product_list", model.category_id).ToString());
Line 127:
Line 128:	templateBuilder.Append("<i>&gt;</i>详情</span><span class=\"ilogo\"><img src=\"");

Source File: d:\web\aspx\main\product_show.aspx    Line: 126

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   DTcms.Web.UI.BasePage.LoopChannelMenu(StringBuilder strTxt, String urlKey, Int32 category_id) +140
   DTcms.Web.UI.BasePage.get_category_menu(String urlKey, Int32 category_id) +116
   ASP.aspx_main_product_show_aspx.OnPreRender(EventArgs e) in d:\web\aspx\main\product_show.aspx:126
   System.Web.UI.Control.PreRenderRecursiveInternal() +88
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +985


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