Fix crash

This commit is contained in:
Jacob Dufault 2017-07-17 13:03:42 -07:00
parent ba973ba1bf
commit 57e5fe1814

View File

@ -404,7 +404,8 @@ void CompletionQueryMain(ClangCompleteManager* completion_manager) {
kCompleteOptions);
if (!cx_results) {
timer.ResetAndPrint("[complete] Code completion failed");
request->on_complete({}, false /*is_cached_result*/);
if (request->on_complete)
request->on_complete({}, false /*is_cached_result*/);
continue;
}