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

Tab Complete NPE? #2281

Closed
IAISI opened this issue Jan 22, 2024 · 1 comment
Closed

Tab Complete NPE? #2281

IAISI opened this issue Jan 22, 2024 · 1 comment
Assignees
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: Bug

Comments

@IAISI
Copy link

IAISI commented Jan 22, 2024

Expected behavior

Not sure.

Observed/Actual behavior

com.destroystokyo.paper.exception.ServerTabCompleteException: Unhandled exception executing tab-completer for 'island team setowner ' in world.bentobox.bskyblock.BSkyBlock$1(island)
	at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:245)
	at org.bukkit.craftbukkit.v1_20_R3.CraftServer.tabCompleteCommand(CraftServer.java:2517)
	at org.bukkit.craftbukkit.v1_20_R3.CraftServer.tabComplete(CraftServer.java:2489)
	at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:74)
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:544)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:524)
	at net.minecraft.server.network.PlayerConnection.lambda$handleCustomCommandSuggestions$5(PlayerConnection.java:809)
	at net.minecraft.server.TickTask.run(TickTask.java:18)
	at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
	at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1452)
	at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194)
	at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
	at net.minecraft.server.MinecraftServer.bl(MinecraftServer.java:1429)
	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1352)
	at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1503)
	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1214)
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.NullPointerException: Cannot invoke "world.bentobox.bentobox.database.objects.Island.getMemberSet()" because the return value of "world.bentobox.bentobox.managers.IslandsManager.getPrimaryIsland(org.bukkit.World, java.util.UUID)" is null
	at BentoBox.jar//world.bentobox.bentobox.api.commands.island.team.IslandTeamSetownerCommand.tabComplete(IslandTeamSetownerCommand.java:103)
	at BentoBox.jar//world.bentobox.bentobox.api.commands.CompositeCommand.tabComplete(CompositeCommand.java:705)
	at org.bukkit.command.Command.tabComplete(Command.java:93)
	at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:240)
	at org.bukkit.craftbukkit.v1_20_R3.CraftServer.tabCompleteCommand(CraftServer.java:2517)
	at org.bukkit.craftbukkit.v1_20_R3.CraftServer.tabComplete(CraftServer.java:2489)
	at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:74)
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:544)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:524)
	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$5(ServerGamePacketListenerImpl.java:809)
	at net.minecraft.server.TickTask.run(TickTask.java:18)
	at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153)
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
	at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1452)
	at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194)
	at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126)
	at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1429)
	at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1352)
	at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136)
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1503)
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1214)
	... 2 more

Steps/models to reproduce

Unsure/Unable to replicate as of now.

BentoBox version

[21:31:10 INFO]: Running PAPER 1.20.4.
[21:31:10 INFO]: BentoBox version: 2.0.0-SNAPSHOT-b2539
[21:31:10 INFO]: Database: JSON
[21:31:10 INFO]: Loaded Game Worlds:
[21:31:10 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, The End
[21:31:10 INFO]: Loaded Addons:
[21:31:10 INFO]: Bank 1.7.1-SNAPSHOT-b87 (ENABLED)
[21:31:10 INFO]: Biomes 2.2.0-SNAPSHOT-b256 (ENABLED)
[21:31:10 INFO]: Border 4.2.2-SNAPSHOT-b194 (ENABLED)
[21:31:10 INFO]: BSkyBlock 1.17.0-SNAPSHOT-b752 (ENABLED)
[21:31:10 INFO]: CauldronWitchery 2.0.2-SNAPSHOT-#60 (ENABLED)
[21:31:10 INFO]: Challenges 1.3.0-SNAPSHOT-b541 (ENABLED)
[21:31:10 INFO]: CheckMeOut 1.2.0-SNAPSHOT-b94 (ENABLED)
[21:31:10 INFO]: ControlPanel 1.13.1 (ENABLED)
[21:31:10 INFO]: DimensionalTrees 1.7.0 (ENABLED)
[21:31:10 INFO]: ExtraMobs 1.13-SNAPSHOT-b23 (ENABLED)
[21:31:10 INFO]: IslandFly 1.11.1 (ENABLED)
[21:31:10 INFO]: Level 2.12.0 (ENABLED)
[21:31:10 INFO]: Likes 2.4.0-SNAPSHOT-b100 (ENABLED)
[21:31:10 INFO]: MagicCobblestoneGenerator 2.5.2-SNAPSHOT-b271 (ENABLED)
[21:31:10 INFO]: TwerkingForTrees 1.5.0 (ENABLED)
[21:31:10 INFO]: Visit 1.7.0-SNAPSHOT (ENABLED)
[21:31:10 INFO]: Warps 1.14.0 (ENABLED)

Plugin list

No response

Other

No response

@tastybento tastybento self-assigned this Jan 22, 2024
@tastybento tastybento added Type: Bug Status: Under investigation Investigating the interest and the feasability of the issue. labels Jan 22, 2024
tastybento added a commit that referenced this issue Jan 22, 2024
@tastybento tastybento added Status: In progress Working on the issue. Status: Done This issue has been completed or answered. This pull request has been merged. and removed Status: Under investigation Investigating the interest and the feasability of the issue. Status: In progress Working on the issue. labels Jan 22, 2024
tastybento added a commit that referenced this issue Jan 22, 2024
@tastybento
Copy link
Member

Thanks for the report. This should be fixed. There was a mis-assumption that anyone running this command had an island.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants