After changing the view permission on a file, we're getting an error "loadFileData() on null"

IMPORTANT

  • Bug reports MUST include reproduction instructions which allow someone who does not have access to your environment to reproduce the issue you’re encountering.
  • Bug reports MUST be against a recent version of Phabricator, and include version information. You can find version information in “Config > Version Information” in the web UI, or arc version from the CLI.

Reproduction Instructions
Complete steps which allow someone else who does not have access to your environment to reproduce the bug.

I’m not exactly sure on the reproduction, but I changed the view policy on one of the files using the “bin/policy” command.

We’re seeing:

[02-Dec-2020 18:09:13 UTC] [2020-12-02 18:09:13] EXCEPTION: (Error) Call to a member function loadFileData() on null at [<phabricator>/src/applications/files/engine/PhabricatorFileChunkIterator.php:39]
[02-Dec-2020 18:09:13 UTC] arcanist(head=master, ref.master=4b3baca999a4), phabricator(head=master, ref.master=b2ab18f8f3d0, custom=5)
[02-Dec-2020 18:09:13 UTC]   #0 phlog(Error) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
[02-Dec-2020 18:09:13 UTC]   #1 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, Error) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:752]
[02-Dec-2020 18:09:13 UTC]   #2 AphrontApplicationConfiguration::handleThrowable(Error) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:300]
[02-Dec-2020 18:09:13 UTC]   #3 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:208]
[02-Dec-2020 18:09:13 UTC]   #4 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:35]

Phabricator/Arcanist Version
Output from Config > Version Information or arc version.
Phabricator: b2ab18f8f3d0
Arcanist: 4b3baca999a4