🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Handle nil pointer dereference. Fix #2133
Deluanaaf58bbd32f9
diff --git a/scanner/tag_scanner.go b/scanner/tag_scanner.goindex 0726ae5c6..b40d4ef5e 100644--- a/scanner/tag_scanner.go+++ b/scanner/tag_scanner.go@@ -168,7 +168,10 @@ func (s *TagScanner) Scan(ctx context.Context, lastModifiedSince time.Time, progfunc isDirEmpty(ctx context.Context, dir string) (bool, error) {children, stats, err := loadDir(ctx, dir)- return len(children) == 0 && stats.AudioFilesCount == 0, err+ if err != nil {+ return false, err+ }+ return len(children) == 0 && stats.AudioFilesCount == 0, nil}func (s *TagScanner) getRootFolderWalker(ctx context.Context) (walkResults, chan error) {