Skip to content

Added null-handling when recording host startup exception to current … - #1438

Open
cervengoc wants to merge 1 commit into
danielgerlag:masterfrom
cervengoc:bug/nullrefexception-hides-startup-exceptions
Open

Added null-handling when recording host startup exception to current …#1438
cervengoc wants to merge 1 commit into
danielgerlag:masterfrom
cervengoc:bug/nullrefexception-hides-startup-exceptions

Conversation

@cervengoc

Copy link
Copy Markdown

Describe the change
In WorkflowHost StartAsync if any exception occures, and there is no ActivityListener for WorkflowCore, then the catch block throws NullReferenceException due to accessing the null activity. This hides the original startup exception and makes impossible to see what had actually happen (eg. RabbitMQ queue provider connection issue, etc.)

Describe your implementation or design
Added a null-conditional operator to AddException

Tests
No

Breaking change
No

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.

2 participants