diff options
author | Bret Johnson <bret.johnson@microsoft.com> | 2022-02-07 08:12:43 +0300 |
---|---|---|
committer | Bret Johnson <bret.johnson@microsoft.com> | 2022-02-07 08:12:43 +0300 |
commit | 9bf088da711d4beb5a194cb636a3bdee7ba2676c (patch) | |
tree | 159253f60c2cc5c7ee08a24e91287e39a74803cf /Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs | |
parent | 78bc24fb825b0a6af277930105f8ef8b85163e78 (diff) |
Protect against CurrentAppearance NRE
Fix AB#1468252
Apparently there are scenarios where CurrentAppearance is not
set by the client on HostResourceProvider (UITools sets it but
vsmac doesn't currently) nor is NSAppearance.CurrentAppearance
set on the current thread (perhaps the thread is newly
created and AppKit didn't get a chance to set it), causing
bug 1468252.
To protect against that, we check if both are null and in that
case just assume it's light theme rather than generate an NRE.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs')
0 files changed, 0 insertions, 0 deletions