mirror of
https://github.com/rclone/rclone.git
synced 2026-03-26 11:22:38 -04:00
When LoginWithKeys failed (e.g. after clearing Mega trash or with a stale session), the error was silently ignored and only logged at debug level. This left the filesystem uninitialized so GetRoot() returned nil, causing a nil pointer dereference panic in findDir. This returns the login error instead of swallowing it, and adds a nil check for GetRoot() in findRoot, and adds defensive nil node checks in findDir and findObject.