mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
EA-25125 - NPE: PsiTypeLookupItem.doCreateItem
This commit is contained in:
@@ -82,7 +82,10 @@ public class PsiTypeLookupItem extends LookupItem {
|
||||
PsiClassType.ClassResolveResult classResolveResult = ((PsiClassType)type).resolveGenerics();
|
||||
final PsiClass psiClass = classResolveResult.getElement();
|
||||
final PsiSubstitutor substitutor = classResolveResult.getSubstitutor();
|
||||
final String text = type.getCanonicalText();
|
||||
String text = type.getCanonicalText();
|
||||
if (text == null) {
|
||||
text = type.getPresentableText();
|
||||
}
|
||||
String typeString = text;
|
||||
String typeParams = "";
|
||||
if (text.indexOf('<') > 0 && text.endsWith(">")) {
|
||||
|
||||
Reference in New Issue
Block a user