Merge "Fix NPE in WebView relro creator process."
This commit is contained in:
committed by
Android (Google) Code Review
commit
4a80ff845a
@@ -492,10 +492,15 @@ public final class WebViewFactory {
|
||||
/** @hide */
|
||||
public static IWebViewUpdateService getUpdateService() {
|
||||
if (isWebViewSupported()) {
|
||||
return IWebViewUpdateService.Stub.asInterface(
|
||||
ServiceManager.getService(WEBVIEW_UPDATE_SERVICE_NAME));
|
||||
return getUpdateServiceUnchecked();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
static IWebViewUpdateService getUpdateServiceUnchecked() {
|
||||
return IWebViewUpdateService.Stub.asInterface(
|
||||
ServiceManager.getService(WEBVIEW_UPDATE_SERVICE_NAME));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class WebViewLibraryLoader {
|
||||
} finally {
|
||||
// We must do our best to always notify the update service, even if something fails.
|
||||
try {
|
||||
WebViewFactory.getUpdateService().notifyRelroCreationCompleted();
|
||||
WebViewFactory.getUpdateServiceUnchecked().notifyRelroCreationCompleted();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(LOGTAG, "error notifying update service", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user