Fix a NPE that occurred apparently because Folder.list() can return null Thanks to Bob Evans PR: 31965