Fix erroneous assert (#13495)

This commit is contained in:
Tamás Vajk 2020-09-01 06:47:26 +02:00 committed by GitHub
parent 8f37cced70
commit 0f02fd7f1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ namespace System.Management.Automation.Remoting
internal FragmentedRemoteObject(byte[] blob, long objectId, long fragmentId,
bool isEndFragment)
{
Dbg.Assert((blob != null) || (blob.Length == 0), "Cannot create a fragment for null or empty data.");
Dbg.Assert((blob != null) && (blob.Length != 0), "Cannot create a fragment for null or empty data.");
Dbg.Assert(objectId >= 0, "Object Id cannot be < 0");
Dbg.Assert(fragmentId >= 0, "Fragment Id cannot be < 0");