How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Login as guest
- Open the share dialog
- Create a public link
Expected behaviour
A link should be created
Actual behaviour
Error: OCA\Guests\Service\InviteService::sendInvite(): Argument #2 ($guest) must be of type string, null given
The fix is rather simple. In Hooks.php change:
$shareWith = $share->getSharedWith();
$isGuest = $this->guestManager->isGuest($shareWith);
to:
$shareWith = $share->getSharedWith();
if ($shareWith === null) {
return;
}
$isGuest = $this->guestManager->isGuest($shareWith);
How to use GitHub
Steps to reproduce
Expected behaviour
A link should be created
Actual behaviour
Error: OCA\Guests\Service\InviteService::sendInvite(): Argument #2 ($guest) must be of type string, null given
The fix is rather simple. In Hooks.php change:
$shareWith = $share->getSharedWith();
$isGuest = $this->guestManager->isGuest($shareWith);
to:
$shareWith = $share->getSharedWith();
if ($shareWith === null) {
return;
}
$isGuest = $this->guestManager->isGuest($shareWith);