Skip to content

Commit

Permalink
RequestHandler: fix GetCookieManager: CefBrowser reference is NULL
Browse files Browse the repository at this point in the history
Fixes upstream issue cztomczak#429

cztomczak#429
  • Loading branch information
jakogut committed May 22, 2018
1 parent 4762083 commit d299fcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/handlers/request_handler.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ cdef public CefRefPtr[CefCookieManager] RequestHandler_GetCookieManager(
cdef object clientCallback
cdef PyCookieManager returnValue
try:
pyBrowser = GetPyBrowser(cefBrowser, "GetCookieManager")
if cefBrowser.get():
pyBrowser = GetPyBrowser(cefBrowser, "GetCookieManager")
else:
pyBrowser = None
pyMainUrl = CefToPyString(cefMainUrl)
if pyBrowser:
# Browser may be empty.
Expand Down

0 comments on commit d299fcd

Please sign in to comment.