Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

cache: fix nil pointer deref - fixes #2448

Nick Craig-Wood6156bc58065a
diff --git a/backend/cache/plex.go b/backend/cache/plex.go
index 424455fb1..bac387db5 100644
--- a/backend/cache/plex.go
+++ b/backend/cache/plex.go
@@ -210,7 +210,9 @@ func (p *plexConnector) authenticate() error {
}
p.token = token
if p.token != "" {
- p.saveToken(p.token)
+ if p.saveToken != nil {
+ p.saveToken(p.token)
+ }
fs.Infof(p.f.Name(), "Connected to Plex server: %v", p.url.String())
}
p.listenWebsocket()