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,7 +564,6 @@ 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({
@ -572,6 +571,7 @@ int run_server(StringView session, StringView init_command,
get_face("Error") get_face("Error")
}); });
} }
}
try try
{ {