Fix use of potentially null local_client

Fixes #667
This commit is contained in:
Maxime Coste 2016-05-09 13:56:15 +01:00
parent b7cf5d6001
commit e3cddf3783

View File

@ -564,13 +564,13 @@ int run_server(StringView session, StringView init_command,
auto& buffer = selections.buffer(); auto& buffer = selections.buffer();
selections = SelectionList(buffer, buffer.clamp(target_coord)); selections = SelectionList(buffer, buffer.clamp(target_coord));
local_client->context().window().center_line(target_coord.line); local_client->context().window().center_line(target_coord.line);
}
if (startup_error) if (startup_error)
local_client->print_status({ local_client->print_status({
"error during startup, see *debug* buffer for details", "error during startup, see *debug* buffer for details",
get_face("Error") get_face("Error")
}); });
}
} }
try try