Merge pull request #7330 from owncloud/idp-fix-panic

prevent panic when session is nil
This commit is contained in:
Michael Barz authored and GitHub committed 2023-09-21 21:03:31 +02:00
commit 8931ee1187
1 file changed
+3
@@ -36,5 +36,8 @@ type cs3Session struct {
// User returns the cs3 user of the session
func (s *cs3Session) User() *cs3user.User {
if s == nil {
return nil
}
return s.u
}