Skip to content

Handles NullRefEx of PSStyle in automation runbooks #446

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
May 6, 2025

Conversation

isra-fel
Copy link
Member

@isra-fel isra-fel commented May 2, 2025

Azure/azure-powershell#26155

Accessing host?.UI?.SupportsVirtualTerminal in automation runbooks can cause NullReferenceException. This PR handles the exception and defaults styling to be disabled.

@wyunchi-ms wyunchi-ms merged commit f6b0b96 into Azure:main May 6, 2025
2 checks passed
@isra-fel isra-fel deleted the supports-virtual-terminal branch May 6, 2025 05:00
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.

3 participants