mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
(no message)
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ public class EmptyCatchBlockInspection extends StatementInspection {
|
||||
for (int i = 0; i < catchSections.length; i++) {
|
||||
final PsiCatchSection section = catchSections[i];
|
||||
final PsiCodeBlock block = section.getCatchBlock();
|
||||
if (catchBlockIsEmpty(block)) {
|
||||
if (block!=null && catchBlockIsEmpty(block)) {
|
||||
final PsiElement catchToken = section.getFirstChild();
|
||||
registerError(catchToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user