fix Issue 11392 - dirEntries segfaults