Skip to content

Commit fff58e4

Browse files
committed
Fix CookieJar.GetAllCookies()
1 parent 184bd6a commit fff58e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/CookieJar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ private ReadOnlyCollection<Cookie> GetAllCookies()
136136
{
137137
foreach (object rawCookie in cookies)
138138
{
139-
Dictionary<string, object> cookieDictionary = (Dictionary<string, object>)rawCookie;
140139
if (rawCookie != null)
141140
{
141+
Dictionary<string, object> cookieDictionary = (Dictionary<string, object>)rawCookie;
142142
toReturn.Add(Cookie.FromDictionary(cookieDictionary));
143143
}
144144
}

0 commit comments

Comments
 (0)