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

prevent panic when session is nil
This commit is contained in:
Michael Barz
2023-09-21 21:03:31 +02:00
committed by GitHub
@@ -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
}