Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork445
Fix NewSketch crash when directories.user is not set#2862
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Fix NewSketch crash when directories.user is not set#2862
Uh oh!
There was an error while loading.Please reload this page.
Conversation
We were calling directly a function that lookup for user definiedsettings. In case an user did not set explictly the directory it wouldreturn an empty string causing a panic. Instead we should have used adedicated function `UserDir` that uses a fallback the defaultdirectories.user
codecovbot commentedMar 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #2862 +/- ##==========================================- Coverage 67.90% 67.87% -0.03%========================================== Files 238 238 Lines 22412 22412 ==========================================- Hits 15218 15212 -6- Misses 6001 6005 +4- Partials 1193 1195 +2
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7271e0a intomasterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Please check if the PR fulfills these requirements
Seehow to contribute
before creating one)
our contributing guidelines
UPGRADING.mdhas been updated with a migration guide (for breaking changes)configuration.schema.jsonupdated if new parameters are added.What kind of change does this PR introduce?
Fix a nil pointer
What is the current behavior?
When the
directories.useris not set by the user, an empty string is returned instead of using the default value. This leads to a panicWhat is the new behavior?
Use the
UserDirfunction that correctly fallback to default dir in case of empty string.Does this PR introduce a breaking change, and istitled accordingly?
Other information