mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-26 15:39:18 -06:00
prevent panic when session is nil
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user