Skip to content
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

fix panic due to nil eventRecorder in GatewayReconciler #117

Merged
merged 1 commit into from
Mar 9, 2023
Merged

fix panic due to nil eventRecorder in GatewayReconciler #117

merged 1 commit into from
Mar 9, 2023

Conversation

aaroniscode
Copy link
Contributor

Issue #, if available: n/a

Description of changes:
set the eventRecorder when creating a new GatewayReconciler to avoid panic when trying to create an event

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@liwenwu-amazon
Copy link
Contributor

Can you add issue and include the crash stacktrace to the issue first? thanks

@aaroniscode
Copy link
Contributor Author

I can recreate the panic ... but I think if you look at the code you can easily spot that the eventRecorder is being initialized as nil and will panic when an event is recorded. Let me know if you still want me to reproduce the panic.

@liwenwu-amazon
Copy link
Contributor

If you can recreate the crash, please add crash stacktrace. thanks

Copy link
Contributor

@liwenwu-amazon liwenwu-amazon left a comment

Choose a reason for hiding this comment

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

lgtm. thanks, Also, please add crash stack trace when you have it.

@liwenwu-amazon liwenwu-amazon merged commit 24eeada into aws:main Mar 9, 2023
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