BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
333 stars 137 forks source link

Fixes #2378 where an unknown UUID was yielding null instead of "" #2379

Closed tastybento closed 4 months ago

tastybento commented 4 months ago

The OP had reported a bug where the name comparison was failing because of a null. The name lookup should never return a null (it's tagged @NonNull) but the underlying optional check was giving a null instead of "". Changing the return to "" will prevent this issue. However, it is not clear how the owner of an island does not have a name entry in the database, but that is another issue.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud