mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-64416 - NPE: DumpLookupElementWeights.getLookupElementWeights
This commit is contained in:
@@ -66,7 +66,8 @@ public class DumpLookupElementWeights extends AnAction implements DumbAware {
|
||||
final Map<LookupElement,StringBuilder> strings = lookup.getRelevanceStrings();
|
||||
List<String> sb = new ArrayList<String>();
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user