Skip to content

Conversation

@Xiqinger
Copy link

Before call next(), I couldn't find any code logic that ensures the 'getRealms()' is not empty.
Add a empty check before calling 'iterator().next()' to avoid potential NullPointerExceptions or unexpected behavior.

…pty. Add a empty check before calling 'iterator().next()' to avoid potential NullPointerExceptions or unexpected behavior.
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.

1 participant