Filter null or empty string values in BeanItemContainer

Hi,
I can’t make it work with standard addContainerFilter.
I have an example bean:


public class MyBean
{
   String field1;
   String filed2;
}

In some cases field2 can be null(or I can replace this null with empty string). It is possible to show in table only beans with field2=null (or empty string).

I tried to set filterString=“”, but this way I have all beans in my table.