You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error-prone version: 2.23.0
BugPattern: InstanceOfAndCastMatchWrongType
Stack Trace:
java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.isPrimitive()" because "t" is null
The snippet on which it failed looks like:
if(bazinstanceofFoo.Bar.Baz(Stringtext, Localelocale, Charsetcharset)) {
Some.staticMethod((Foo.Bar.Baz) baz, unrelated); // <-- NullPointerException on this line
}
where Foo is an enum, Bar a sealed interface and Baz a record that implements Bar.
The text was updated successfully, but these errors were encountered:
Similar to #4167
error-prone version: 2.23.0
BugPattern: InstanceOfAndCastMatchWrongType
Stack Trace:
java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.isPrimitive()" because "t" is null
The snippet on which it failed looks like:
where Foo is an enum, Bar a sealed interface and Baz a record that implements Bar.
The text was updated successfully, but these errors were encountered: