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:
Marshall Greenblatt 2011-12-15 12:59:44 +00:00
parent 84a40f0820
commit bd84c988cf
1 changed files with 4 additions and 1 deletions

View File

@ -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