Can't delete file in shared link

I can’t delete file from external storage when I enable “allow upload and edit” in sharing link.But “delete” option is effective in local storage sharing link.
error log:
Error

public

2020-03-15T23:21:27+0800

Error:
Call to a member function getUID() on null

  1. /var/www/html/apps/activity/lib/FilesHooks.php - line 638:OC\Files\View->getOwner("/Onedrive/N … g")
  2. /var/www/html/apps/activity/lib/FilesHooks.php - line 190:OCA\Activity\FilesHooks->getSourcePathAndOwner("/Onedrive/N … g")
  3. /var/www/html/apps/activity/lib/FilesHooks.php - line 165:OCA\Activity\FilesHooks->addNotificationsForFileAction("/Onedrive/N … g", “file_deleted”, “deleted_self”, “deleted_by”)
  4. /var/www/html/apps/activity/lib/FilesHooksStatic.php - line 63:OCA\Activity\FilesHooks->fileDelete("/Onedrive/N … g")
  5. /var/www/html/lib/private/legacy/hook.php - line 111:OCA\Activity\FilesHooksStatic::fileDelete({ run: true, … "})
  6. /var/www/html/lib/private/Files/View.php - line 1275:OC_Hook::emit(“OC_Filesystem”, “delete”, { run: true, … "})
  7. /var/www/html/lib/private/Files/View.php - line 1145:OC\Files\View->runHooks([ “delete”], “/Onedrive/N … g”)
  8. /var/www/html/lib/private/Files/View.php - line 716:OC\Files\View->basicOperation(“unlink”, “/Screenshot … g”, [ “delete”])
  9. /var/www/html/apps/dav/lib/Connector/Sabre/File.php - line 448:OC\Files\View->unlink("/Screenshot … g")
  10. /var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php - line 179:OCA\DAV\Connector\Sabre\File->delete()
  11. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 287:Sabre\DAV\Tree->delete(“Screenshot_ … g”)
  12. <>Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})
  13. /var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:call_user_func_array([ Sabre\DAV\ … "], [ Sabre\HTTP … }])
  14. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:Sabre\Event\EventEmitter->emit(“method:DELETE”, [ Sabre\HTTP … }])
  15. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})
  16. /var/www/html/apps/dav/appinfo/v1/publicwebdav.php - line 109:Sabre\DAV\Server->exec()
  17. /var/www/html/public.php - line 81:require_once("/var/www/ht … p")

Hello @Evans_Kenneth ,

welcome to the community of Nextcloud.

Deleted the duplicate post if this one.

I don’t know which subject it belong to.