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 133:        List<Img> listimgs = new List<Img>();
Line 134:        string listimg = album.Image;
Line 135:        string[] str = listimg.Split('\'');
Line 136:        foreach (var b in str)
Line 137:        {

Source File: d:\Inetpub\vhosts\baocaosuphanthiet.com\httpdocs\Vn\DetailProduct.aspx.cs    Line: 135

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Vn_DetailProduct.PopulateControlsimg() in d:\Inetpub\vhosts\baocaosuphanthiet.com\httpdocs\Vn\DetailProduct.aspx.cs:135
   Vn_DetailProduct.PopulateControls() in d:\Inetpub\vhosts\baocaosuphanthiet.com\httpdocs\Vn\DetailProduct.aspx.cs:85
   Vn_DetailProduct.Page_Load(Object sender, EventArgs e) in d:\Inetpub\vhosts\baocaosuphanthiet.com\httpdocs\Vn\DetailProduct.aspx.cs:22
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


Version Information: Microsoft .NET Framework Version:2.0.50727.8964; ASP.NET Version:2.0.50727.8962