Skip to content

Commit

Permalink
Fix possible NullReferenceException
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=58574
  • Loading branch information
Boris Kirzner committed Mar 27, 2006
1 parent c0c7cc7 commit 71b1164
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mcs/class/System.Data/Mono.Data.SqlExpressions/Aggregation.cs
Expand Up @@ -75,13 +75,18 @@ public override bool Equals(object obj)
if (!other.column.Equals (column))
return false;

if (other.rows != null && rows != null) {
if (other.rows.Length != rows.Length)
return false;

for (int i=0; i < rows.Length; i++)
if (other.rows [i] != rows [i])
return false;

}
else if (!(other.rows == null && rows == null))
return false;

return true;
}

Expand Down
3 changes: 3 additions & 0 deletions mcs/class/System.Data/Mono.Data.SqlExpressions/ChangeLog
@@ -1,3 +1,6 @@
2006-03-27 Boris Kirzner <borisk@mainsoft.com>
* Aggregation.cs: fix possible NullReferenceException.

2006-02-03 Senganal T <tsenganal@novell.com>

* ColumnReference.cs :
Expand Down

0 comments on commit 71b1164

Please sign in to comment.