I have an xml file with test classes.This is my testng suite xml. Each test class, has the following structure:

```
@BeforeClass
public void beforeClass(){
}

@Test(dataProvider="Mail Information")
public void mailSend(String to,String subject,String body) throws Exception{
}

@AfterClass{
}

```

When I mistakenly put a null object in `AfterClass`, the test correctly failed, with `java.lang.NullPointerException`, but instead of continuing to the other tests of the suite, all the other tests became Skipped.

I assume that they become skipped, because their `@beforeClass` became skipped. So I think that the real problem is that a failure in `AfterClass`, somehow affected the BeforeClasses of the following tests in suite.

How can we handle such problem?