mirror of
https://github.com/netzbegruenung/circles.git
synced 2024-05-14 09:06:06 +02:00
Merge pull request #890 from nextcloud/fix/849/throw-exception-on-null-token
exception on null token
This commit is contained in:
commit
5f8e2a0c7a
|
@ -585,6 +585,10 @@ class ShareByCircleProvider implements IShareProvider {
|
|||
* @throws ShareNotFound
|
||||
*/
|
||||
public function getShareByToken($token): IShare {
|
||||
if (is_null($token)) {
|
||||
throw new ShareNotFound();
|
||||
}
|
||||
|
||||
try {
|
||||
$wrappedShare = $this->shareWrapperService->getShareByToken($token);
|
||||
} catch (ShareWrapperNotFoundException $e) {
|
||||
|
|
Loading…
Reference in a new issue