<rdar://problem/
4801066>
Added a critical null frameLoader() check
* loader/mac/MainResourceLoaderMac.mm:
(WebCore::MainResourceLoader::loadNow):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17622
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-11-06 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Dave Harrison
+
+ <rdar://problem/4801066>
+ Added a critical null frameLoader() check
+
+ * loader/mac/MainResourceLoaderMac.mm:
+ (WebCore::MainResourceLoader::loadNow):
+
2006-11-06 David Harrison <harrison@apple.com>
Reviewed by Darin.
// we no longer send the callback from within NSURLConnection for
// initial requests.
r = willSendRequest(r, nil);
+
+ // <rdar://problem/4801066>
+ // willSendRequest() is liable to make the call to frameLoader() return NULL, so we need to check that here
+ if (!frameLoader())
+ return nil;
+
NSURL *URL = [r URL];
bool shouldLoadEmpty = shouldLoadAsEmptyDocument(URL);