Fix case when result is None.
Which can happen when server returns an error. Close
@@ -947,6 +947,9 @@ class LanguageClient:
result = self.textDocument_completion()
logger.debug("result: %s", result)
+ if result is None:
+ return
+
items = result
isIncomplete = False
if isinstance(result, dict):
