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

Prevent NPE in NetworkSettingsView when no connected peers are found #6419

Closed
wants to merge 1 commit into from

Conversation

Android-X13
Copy link
Contributor

Fixes #6390

To reproduce (not always, for some reason):

  1. Start one Bisq instance (Bob) without deploying a complete localnet
  2. Navigate to Settings > NETWORK INFO

While trying to set the value of chainHeightTextField it will pass a null list of peers to getMostCommonChainHeight which will throw the NPE. Sometimes it passes a non-null empty list instead, so it doesn't throw any NPE.

@Android-X13
Copy link
Contributor Author

@jmacxx I have just realized that you have included a similar fix in #6376 (which has not yet been merged). That will fix the NPE described in the linked issue above.
I will close this PR

@Android-X13 Android-X13 deleted the fix-issue-6390 branch November 30, 2022 11:17
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.

Cannot invoke "java.util.List.isEmpty()" because "peers" is null
1 participant