Skip to content

Fix DBusPlatformSettings NullReferenceException - #21831

Merged
MrJul merged 1 commit into
AvaloniaUI:mainfrom
pos777:fix/DBusPlatformSettings_NullReferenceException
Jul 24, 2026
Merged

Fix DBusPlatformSettings NullReferenceException#21831
MrJul merged 1 commit into
AvaloniaUI:mainfrom
pos777:fix/DBusPlatformSettings_NullReferenceException

Conversation

@pos777

@pos777 pos777 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What does the pull request do?

Fix DBusPlatformSettings: NullReferenceException occurs if there is no DBusHelper.DefaultConnection (#21821)

What is the current behavior?

NullReferenceException occurs if there is no DBusHelper.DefaultConnection

What is the updated/expected behavior with this PR?

No exception

How was the solution implemented (if it's not obvious)?

Check the _settings field for null

Checklist

Breaking changes

No

Obsoletions / Deprecations

No

Fixed issues

Fixes #21821

@MrJul MrJul added bug area-x11 area-wayland backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Jul 23, 2026
@pos777
pos777 force-pushed the fix/DBusPlatformSettings_NullReferenceException branch from 5afe62a to cb0c203 Compare July 24, 2026 04:53
@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.2.999-cibuild0067679-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrJul
MrJul added this pull request to the merge queue Jul 24, 2026
Merged via the queue into AvaloniaUI:main with commit 81dad81 Jul 24, 2026
10 checks passed
@MrJul MrJul added backported-12.1.x and removed backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DBusPlatformSettings: NullReferenceException occurs if there is no DBusHelper.DefaultConnection

3 participants