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

Setting third parameter to emptyCollection in static of methods call to SymbolicAdsTag #1633

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

mrwhy-orig
Copy link
Contributor

This fixes a bug in subscription where the SymbolicAdsTag gets casted to DefaultSubscriptionTag.
It was possible that the arrayInfo field wasn't initialized which lead to a NullpointerException.

Initializing arrayInfo variable with immutable empty list in static of method.
…cAdsTag

Update SymbolicAdsTag.java static of method
@mrwhy-orig
Copy link
Contributor Author

Maybe it is more reasonable to return a immutable empty collection in getArrayInfo method if the field is null... (If someone set it to null it is unlikely that there will be more than one value, right?)

@sruehl sruehl requested a review from chrisdutz June 7, 2024 07:04
@ottlukas ottlukas added the java Pull requests that update Java code label Jun 8, 2024
@chrisdutz chrisdutz merged commit 05a3ca2 into apache:develop Jun 14, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants