fix nullpointerexception on folders without proper logs