mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
[java-psi] IDEA-377483 Wrong NPE message when iterating over Iterables.concat
Handle when `T extends @Nullable Type` is instantiated with unknown nullability GitOrigin-RevId: 21d7cc928f4f5d9ac037fa42a632f936ed6c6516
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ad883180fe
commit
58d5de70e8
@@ -78,6 +78,9 @@ public final class TypeNullability {
|
||||
if (this.nullability() == Nullability.NOT_NULL) {
|
||||
return this;
|
||||
}
|
||||
if (this.nullability() == Nullability.NULLABLE && this.source() instanceof NullabilitySource.ExtendsBound) {
|
||||
return nullability;
|
||||
}
|
||||
if (nullability.nullability() == Nullability.NOT_NULL && this.source() instanceof NullabilitySource.ExtendsBound) {
|
||||
return nullability;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user