mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-24 16:07:42 +01:00
Check that DOMStorageContext is non-NULL in UIT_SetStoragePath before dereferencing.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@418 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
84a40f0820
commit
bd84c988cf
@ -343,7 +343,10 @@ void UIT_SetStoragePath(int64 namespace_id, const CefString& path)
|
||||
if (!path.empty())
|
||||
file_path = FilePath(path);
|
||||
|
||||
_Context->storage_context()->SetLocalStoragePath(file_path);
|
||||
DOMStorageContext* context = _Context->storage_context();
|
||||
DCHECK(context);
|
||||
if (context)
|
||||
context->SetLocalStoragePath(file_path);
|
||||
}
|
||||
|
||||
} // anonymous
|
||||
|
Loading…
x
Reference in New Issue
Block a user