mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.psi;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.psi.search.GlobalSearchScope;
|
||||
@@ -47,7 +48,7 @@ public class GenericsUtil {
|
||||
if (TypeConversionUtil.isPrimitiveAndNotNull(type1) || TypeConversionUtil.isPrimitiveAndNotNull(type2)) return null;
|
||||
if (TypeConversionUtil.isNullType(type1)) return type2;
|
||||
if (TypeConversionUtil.isNullType(type2)) return type1;
|
||||
if (type1.equals(type2)) return type1;
|
||||
if (Comparing.equal(type1, type2)) return type1;
|
||||
return getLeastUpperBound(type1, type2, new LinkedHashSet<Pair<PsiType, PsiType>>(), manager);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user