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

[Bugfix] fixed an NRE when event was changed from in channel to external or vice versa #2483

Conversation

SaculRennorb
Copy link
Contributor

This fixes a nre from my earlier contribution that occurred when an scheduled-event update audit log entry contained a change that changed the event type from internal to exernal. I forgot to handle the fact that channel ids and location names can actually have a null value (only one of them can actually have a non null value at the same time). Also there now is a way to differentiate between those values not having changed (the property is null in that case) and the value changing from/to a null value (the optional will be unset / the id will be 0).

Copy link
Contributor

@Rekkonnect Rekkonnect left a comment

Choose a reason for hiding this comment

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

Some code style changes

@SaculRennorb
Copy link
Contributor Author

Hey @Rekkonnect , could you have another look at this?

@Rekkonnect
Copy link
Contributor

LGTM nice edits

@csmir csmir merged commit 493f604 into discord-net:dev Jan 21, 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.

3 participants