fatal error
paulwoods222 opened this issue · comments
paulwoods222 commented
error-prone version: 2.11.0
BugPattern: FallThrough
Stack Trace:
java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because the return value of "com.sun.source.tree.CaseTree.getStatements()" is null
Java 17
switch (onEnum) {
case A: {
//
break;
}
case B: {
//
break;
}
case C:
switch (AnotherEnum) {
Throws Here?--> case AA: {
//
break;
}
case BB: {
//
break;
}
case CC: {
//
break;
}
case DD: {
switch (ThirdEnum) {
case AAA -> {
}
case BBB -> {
}
case CCC -> {
}
default ->
//
}
break;
}
default: {
//
break;
}
}
break;
case D: {
switch (AnotherEnum) {
case AA: {
//
break;
}
case BB: {
//
break;
}
default: {
//
}
}
break;
}
case E: {
//
break;
}
case F: {
//
break;
}
default:
//
break;
}
paulwoods222 commented
Liam Miller-Cushon commented
Yes we need to upgrade to the latest version of dataflow, but there were a couple of API changes I didn't have time to investigate and it didn't quite make it into 2.11.0
Liam Miller-Cushon commented