Protect test tearDown from NPEs in the event there are problems in the
tests.
@@ -55,9 +55,13 @@ public class RewriteAppenderTest {
@After
public void tearDown() throws Exception {
+ if (app != null) {
app.clear();
+ }
+ if (app2 != null) {
app2.clear();
}
+ }
@Test
public void rewriteTest() {
