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 286:                publicationssection.InnerHtml += "<h2>Selected Publications</h2>";
Line 287:                publicationssection.InnerHtml += "<table class='dcf-table dcf-table-bordered dcf-table-striped'><tbody>";
Line 288:                var thelist = publist.OrderByDescending(x => x.pubyear).ThenBy(x => x.citation).ToList();
Line 289:                foreach (var qq in thelist)
Line 290:                {

Source File: d:\Web\snr\V10.0\aboutus\who\people\faculty-member.aspx.cs    Line: 288

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   aboutus_who_people_faculty_member.<DisplayPublications>b__7(Publication x) in d:\Web\snr\V10.0\aboutus\who\people\faculty-member.aspx.cs:288
   System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count) +92
   System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count) +28
   System.Linq.<GetEnumerator>d__1.MoveNext() +272
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +452
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +72
   aboutus_who_people_faculty_member.DisplayPublications(Int32 pid) in d:\Web\snr\V10.0\aboutus\who\people\faculty-member.aspx.cs:288
   aboutus_who_people_faculty_member.Page_Load(Object sender, EventArgs e) in d:\Web\snr\V10.0\aboutus\who\people\faculty-member.aspx.cs:82
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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