bug: the database created by Dottext_095_FullDB.sql did not contain some data, this can cause a error

Topics: Project Management Forum
Dec 6, 2006 at 7:29 AM
the error take place on the 82 line in HomePage.Master

DataTable dtCounts = ds.Tables1;
if (dtCounts != null)
{
DataRow dr = dtCounts.Rows0;
...

I think the code should be:

DataTable dtCounts = ds.Tables1;
if (dtCounts != null && dtCounts.Rows.Count==1)
{
DataRow dr = dtCounts.Rows0;
...