<rdar://problem/10942540> REGRESSION (r108956): Safari Webpage Preview Fetcher crashe...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Mar 2012 04:54:18 +0000 (04:54 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Mar 2012 04:54:18 +0000 (04:54 +0000)
commit51a3d25bc24656aa63953b21897146d4f4b1f478
treef5c5b096991cd5f2a76cb3beb68720dd3ac06a73
parentb8a5730cc0535593e6f074e3edc4e56f6713bcb4
<rdar://problem/10942540> REGRESSION (r108956): Safari Webpage Preview Fetcher crashes in WebCore::localizedString() when using a WebKit nightly build
https://bugs.webkit.org/show_bug.cgi?id=80034

Reviewed by Benjamin Poulain.

Safari Webpage Preview Fetcher can’t access the WebCore framework when launched from a WebKit
nightly build. After r108956, this causes it to crash.

* platform/mac/LocalizedStringsMac.cpp:
(WebCore::localizedString): Added a null-check for the value returned from
CFBundleGetBundleWithIdentifier(CFSTR("com.apple.WebCore")).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mac/LocalizedStringsMac.cpp