mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Fix crash when driver fuzzer finds language-server. (#4847)
The driver fuzzer, unlike the actual driver, provides a null `input_stream`, which caused the `language-server` subcommand to crash.
This commit is contained in:
@@ -22,6 +22,7 @@ auto LanguageServerSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
if (!driver_env.input_stream) {
|
||||
*driver_env.error_stream
|
||||
<< "error: language-server requires input_stream\n";
|
||||
return {.success = false};
|
||||
}
|
||||
|
||||
auto err =
|
||||
|
||||
Reference in New Issue
Block a user