Fix NPE for Atom LS build

This commit is contained in:
BoykoAlex
2017-10-11 00:57:57 -04:00
parent 7771017507
commit 522e8e6775

View File

@@ -214,7 +214,9 @@ public class SpringIndexer {
if (cu != null) {
List<SymbolInformation> oldSymbols = symbolsByDoc.remove(docURI);
symbols.removeAll(oldSymbols);
if (oldSymbols != null) {
symbols.removeAll(oldSymbols);
}
AtomicReference<TextDocument> docRef = new AtomicReference<>();
scanAST(cu, docURI, docRef, content);