mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java control flow: Collect more data on try-catch statements which contain errors ahd therefore can't be handled normally. Use LOG.error for that instead of 'assert'
This commit is contained in:
@@ -1121,8 +1121,12 @@ class ControlFlowAnalyzer extends JavaElementVisitor {
|
||||
generateWriteInstruction(catchBlockParameters[i]);
|
||||
}
|
||||
PsiCodeBlock catchBlock = catchBlocks[i];
|
||||
assert catchBlock != null : i + statement.getText();
|
||||
catchBlock.accept(this);
|
||||
if (catchBlock != null) {
|
||||
catchBlock.accept(this);
|
||||
}
|
||||
else {
|
||||
LOG.error("Catch body is null (" + i + ") " + statement.getText());
|
||||
}
|
||||
|
||||
myCurrentFlow.addInstruction(new GoToInstruction(finallyBlock == null ? 0 : -6));
|
||||
if (finallyBlock == null) {
|
||||
|
||||
Reference in New Issue
Block a user