Skip to content

Commit 77759b7

Browse files
committed
Fix nil pointer exception in DownloadFileByID when attrs are missing
See: rclone/rclone#9377
1 parent 58f49e7 commit 77759b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

file.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func (protonDrive *ProtonDrive) GetActiveRevisionWithAttrs(ctx context.Context,
122122
if err != nil {
123123
return nil, nil, err
124124
}
125+
if revisionXAttrCommon == nil {
126+
return &revision, nil, nil
127+
}
125128

126129
modificationTime, err := iso8601.ParseString(revisionXAttrCommon.ModificationTime)
127130
if err != nil {

0 commit comments

Comments
 (0)