diff --git a/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/contentassist/CompletionProposalDescriptionProvider.java b/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/contentassist/CompletionProposalDescriptionProvider.java index d0483d527e..4aeb863ae5 100644 --- a/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/contentassist/CompletionProposalDescriptionProvider.java +++ b/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/contentassist/CompletionProposalDescriptionProvider.java @@ -53,7 +53,7 @@ public class CompletionProposalDescriptionProvider { */ private CompletionContext fContext; private ICompilationUnit fUnit; - private Map fCollapsedTypes = new HashMap<>(); + private Map fCollapsedTypes; /** * Creates a new label provider. @@ -70,11 +70,13 @@ public CompletionProposalDescriptionProvider(ICompilationUnit unit, CompletionCo super(); fContext = context; fUnit = unit; + fCollapsedTypes = new HashMap<>(); } public CompletionProposalDescriptionProvider(CompletionContext context) { super(); fContext = context; + fCollapsedTypes = new HashMap<>(); } /**