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

always have an config object #371

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

ygerlach
Copy link
Contributor

@ygerlach ygerlach commented Nov 19, 2024

Fixes: #370

This makes sure the config object is never null. If it is null the TeeJee.JsonHelper.json_get_string may also return null as shown in #370. It is probably best to remove the TeeJee.JsonHelper.json_get_* functions all together in favor of Json.Object.get_*_member_with_default, as they do basicly the same thing.

@mtwebster mtwebster merged commit 85c6561 into linuxmint:master Dec 2, 2024
2 checks passed
@ygerlach ygerlach deleted the fixEmptyConfigSegfault branch December 7, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Timeshift crashed if /etc/timeshift/timeshift.json is empty
2 participants