Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic on google.Drive.BuildFileHierarchy recursion #5

Open
mrksmrtn opened this issue Nov 19, 2020 · 0 comments
Open

Panic on google.Drive.BuildFileHierarchy recursion #5

mrksmrtn opened this issue Nov 19, 2020 · 0 comments

Comments

@mrksmrtn
Copy link
Collaborator

google.Drive.BuildFileHierarchy is a recursive function that returns nil when it encounters a Google Drive API error. This can cause a panic when a recursive call fails its API call and returns nil. This is because google/Drive.go line 191 does not check the result of calling BuildFileHierarchy for nil.

This error was discovered when a Google Drive API call returned a userRateLimitExceeded response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant