To a member function getFileID() on nullHandling "Concrete\Core\File\Command\ReindexFileTaskCommand" failed: Call

I have an error when reindexing files. I get the Handling “Concrete\Core\File\Command\ReindexFileTaskCommand” failed: Call to a member function getFileID() on null
How can the null getfileid() be determined? I assume it is a database error but not sure how to troubleshoot. Thanks for any guidance.

Does seem weird - maybe try clearing the cache before running that task again?

Could this be related to 9.3.4 errors

I created a general issue about error handling within tasks.