- avoiding NPE in document list view when variable type is null