diff --git a/browser/extensions/brave_extension_management.cc b/browser/extensions/brave_extension_management.cc index 1d24b373caa6..0c6edfed8575 100644 --- a/browser/extensions/brave_extension_management.cc +++ b/browser/extensions/brave_extension_management.cc @@ -44,7 +44,8 @@ void BraveExtensionManagement::RegisterBraveExtensions() { #if BUILDFLAG(ENABLE_TOR) const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess(); - if (!command_line.HasSwitch(switches::kDisableTorClientUpdaterExtension)) + if (g_brave_browser_process && + !command_line.HasSwitch(switches::kDisableTorClientUpdaterExtension)) g_brave_browser_process->tor_client_updater()->Register(); #endif }