Skip to content

Commit 10bc4b2

Browse files
committed
Added null check so we don't throw exceptions if no headers are provided.
1 parent 0e037c5 commit 10bc4b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CefSharp/SchemeHandlerWrapper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ namespace CefSharp
1212
{
1313
CefResponse::HeaderMap result;
1414

15+
if (headers == nullptr)
16+
{
17+
return result;
18+
}
19+
1520
for each (KeyValuePair<String^, String^> header in headers)
1621
{
1722
result.insert(std::pair<CefString,CefString>(toNative(header.Key), toNative(header.Value)));

0 commit comments

Comments
 (0)