Skip to content

Apple: Fix NRE when listing devices that are not paired #1127

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

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Jan 8, 2024

When a device is not paired (trusted) then some data like the architecture is not available.
Prevent a NullReferenceException when trying to access that data.

Fixes #1126

When a device is not paired (trusted) then some data like the architecture is not available.
Prevent a NullReferenceException when trying to access that data.

Fixes dotnet#1126
@akoeplinger akoeplinger requested a review from premun January 8, 2024 12:14
@akoeplinger akoeplinger changed the title Fix NRE when listing devices that are not paired Apple: Fix NRE when listing devices that are not paired Jan 8, 2024
@premun premun merged commit caf8f0b into dotnet:main Jan 8, 2024
@premun
Copy link
Member

premun commented Jan 8, 2024

Oops, merged accidentally

@akoeplinger
Copy link
Member Author

No problem, I wanted to merge it anyway :)

@akoeplinger akoeplinger deleted the fix-nullref branch January 8, 2024 15:41
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

Successfully merging this pull request may close these issues.

NullReferenceException when xharness tries to list device which is untrusted
2 participants