mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
NPE
This commit is contained in:
@@ -96,7 +96,8 @@ public class JavaResolveCache {
|
||||
SoftReference<PsiType> ref = new SoftReference<PsiType>(type);
|
||||
Reference<PsiType> storedRef = ConcurrencyUtil.cacheOrGet(myCalculatedTypes, expr, ref);
|
||||
|
||||
type = storedRef.get();
|
||||
PsiType stored = storedRef.get();
|
||||
type = stored == null ? type : stored;
|
||||
}
|
||||
|
||||
if (!type.isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user