3

Resolved

ArrayExtensions.IsNullOrEmpty bug when null array

description

ArrayExtensions.cs class has a bug in its IsNullOrEmpty method:
public static bool IsNullOrEmpty(this Array source)
{
    return source != null ? source.Length <= 0 : false;
}
Whe the array passed is null, returns false when should return true.

comments

wrote Jul 5, 2015 at 2:29 PM

Resolved with changeset 73300: updates and bug fixes

cgessler wrote Jul 5, 2015 at 2:30 PM

** Closed by cgessler 7/5/2015 6:29 AM

wrote Jul 5, 2015 at 2:30 PM

cgessler wrote Jul 5, 2015 at 2:30 PM

Fixed.