diff --git a/platform/lang-impl/src/com/intellij/internal/DumpLookupElementWeights.java b/platform/lang-impl/src/com/intellij/internal/DumpLookupElementWeights.java index 6350642c772e..8ae1cc85f72f 100644 --- a/platform/lang-impl/src/com/intellij/internal/DumpLookupElementWeights.java +++ b/platform/lang-impl/src/com/intellij/internal/DumpLookupElementWeights.java @@ -66,7 +66,8 @@ public class DumpLookupElementWeights extends AnAction implements DumbAware { final Map strings = lookup.getRelevanceStrings(); List sb = new ArrayList(); for (LookupElement item : lookup.getItems()) { - String weight = strings.get(item).toString(); + StringBuilder builder = strings.get(item); + String weight = builder == null ? "null" : builder.toString(); final String s = item.getLookupString() + "\t" + weight; sb.add(s); }