Skip to content

Defensively create collections in JAXB getters#139

Closed
evdherberg wants to merge 2 commits intoigniterealtime:mainfrom
evdherberg:feature/137-defensive-collection-getters
Closed

Defensively create collections in JAXB getters#139
evdherberg wants to merge 2 commits intoigniterealtime:mainfrom
evdherberg:feature/137-defensive-collection-getters

Conversation

@evdherberg
Copy link
Copy Markdown
Contributor

@evdherberg evdherberg commented Jul 29, 2022

Fixes #137. Well, partly. I only made this change for the entity where the problem manifested itself for me. I don't have time now to check all entities. If that's considered necessary, then this PR should remain open until that's done.

@evdherberg evdherberg requested a review from guusdk July 29, 2022 15:36
@guusdk guusdk force-pushed the feature/137-defensive-collection-getters branch from 28ab188 to ca8498e Compare July 31, 2022 13:18
@guusdk guusdk force-pushed the feature/137-defensive-collection-getters branch from ca8498e to 71ddc64 Compare July 31, 2022 13:19
@guusdk guusdk force-pushed the feature/137-defensive-collection-getters branch from 71ddc64 to 84a071e Compare July 31, 2022 13:28
@guusdk
Copy link
Copy Markdown
Member

guusdk commented Jul 31, 2022

I have added the same defensive code to all other getters in entities, and rebased this PR to the latest main branch

However, the more I think about this, the more I wonder if this doesn't fix a problem, but hides one. I wonder if @evdherberg was initially running into the same issue that is causing #15. For that, PR #131 is created, which should fix things.

I'd like to merge #131 first, and see if that prevents the issue that Emiel was experiencing. If that's the case, then there should no longer be a need for this PR.

@guusdk guusdk marked this pull request as draft July 31, 2022 13:34
@evdherberg
Copy link
Copy Markdown
Contributor Author

See #137: the problem disappeared with changes from #131. So I propose to close this PR without merging @guusdk.

@guusdk guusdk closed this Aug 3, 2022
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.

Defensively create collections in JAXB getters

2 participants