(no message)

This commit is contained in:
Dave Griffith
2005-03-09 17:03:29 +03:00
parent 6026eaed39
commit 59a3980514
@@ -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);
}