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())
|
if (!path.empty())
|
||||||
file_path = FilePath(path);
|
file_path = FilePath(path);
|
||||||
|
|
||||||
_Context->storage_context()->SetLocalStoragePath(file_path);
|
DOMStorageContext* context = _Context->storage_context();
|
||||||
|
DCHECK(context);
|
||||||
|
if (context)
|
||||||
|
context->SetLocalStoragePath(file_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // anonymous
|
} // anonymous
|
||||||
|
|
Loading…
Reference in New Issue