handle nulls correctly

This commit is contained in:
Athou
2014-11-22 11:53:46 +01:00
parent cbc792d406
commit d1be331f99
2 changed files with 11 additions and 4 deletions

View File

@@ -65,4 +65,10 @@ public class FeedEntryFilteringServiceTest {
service.filterMatchesEntry("while(true) {}", entry);
}
@Test
public void handlesNullCorrectly() throws FeedEntryFilterException {
entry.setContent(new FeedEntryContent());
service.filterMatchesEntry("author eq 'athou'", entry);
}
}