Index: Source/WebKit/chromium/src/DatabaseObserver.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/DatabaseObserver.cpp (revision 107406) |
+++ Source/WebKit/chromium/src/DatabaseObserver.cpp (working copy) |
@@ -170,7 +170,10 @@ |
WorkerContext* workerContext = static_cast<WorkerContext*>(scriptExecutionContext); |
WorkerLoaderProxy* workerLoaderProxy = &workerContext->thread()->workerLoaderProxy(); |
NewWebWorkerBase* webWorker = static_cast<NewWebWorkerBase*>(workerLoaderProxy); |
- return allowDatabaseForWorker(webWorker->newCommonClient(), webWorker->view()->mainFrame(), name, displayName, estimatedSize); |
+ WebView* view = webWorker->view(); |
+ if (!view) |
+ return false; |
+ return allowDatabaseForWorker(webWorker->newCommonClient(), view->mainFrame(), name, displayName, estimatedSize); |
#else |
ASSERT_NOT_REACHED(); |
#endif |