Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 052ebdc

Browse files
authored
Merge 39f4683 into 58665d5
2 parents 58665d5 + 39f4683 commit 052ebdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp/PostDataExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static string GetCharSet(this IRequest request)
8181
public static string GetBody(this IPostDataElement postDataElement, string charSet = null)
8282
{
8383
var bytes = postDataElement.Bytes;
84-
if (bytes.Length == 0)
84+
if (bytes is null || bytes.Length == 0)
8585
{
8686
return null;
8787
}

0 commit comments

Comments
 (0)