Skip to content

Commit c565f50

Browse files
authored
Handle case where IPostDataElement.Bytes is null (#5120)
1 parent 58665d5 commit c565f50

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)