diff options
author | Varun Patil <varunpatil@ucla.edu> | 2022-11-23 18:30:22 -0800 |
---|---|---|
committer | Varun Patil <varunpatil@ucla.edu> | 2022-11-24 02:33:31 -0800 |
commit | 136b2c59493c4d4514da9c7e0b9febb6b3632301 (patch) | |
tree | 6e52e4b69bb6307c61dfdf7b35aae0ea03928684 /core/Controller/PreviewController.php | |
parent | 9422d80f882b99d56fb9edb3c7bd1f3758e9cb1f (diff) | |
download | nextcloud-server-136b2c59493c4d4514da9c7e0b9febb6b3632301.tar.gz nextcloud-server-136b2c59493c4d4514da9c7e0b9febb6b3632301.zip |
Fix type of PreviewController::$userId
Can be null if not logged in; currently crashes
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Diffstat (limited to 'core/Controller/PreviewController.php')
-rw-r--r-- | core/Controller/PreviewController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php index 9b3acaae013..118f1b47752 100644 --- a/core/Controller/PreviewController.php +++ b/core/Controller/PreviewController.php @@ -40,7 +40,7 @@ use OCP\IPreview; use OCP\IRequest; class PreviewController extends Controller { - private string $userId; + private ?string $userId; private IRootFolder $root; private IPreview $preview; |