PotatoCraft-Studio / QuickShop-Reremake

QuickShop-Reremake is a **FREE** shop plugin that allows players to easily sell/buy any items from a chest without any commands. In fact, none of the commands that QuickShop-Reremake provides are ever needed by a player.
GNU General Public License v3.0
71 stars 75 forks source link

[BUG] display-auto-despawn warning console spam #467

Closed KermX closed 3 months ago

KermX commented 5 months ago

Description

Console spam with display-auto-despawn option turned on. This warning appears to not cause any real issues in game to my knowledge.

[09:32:57 WARN]: [QuickShop] Task #1020 for QuickShop v5.1.2.5 generated an exception
java.lang.NullPointerException: null
        at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
        at org.maxgamer.quickshop.shop.VirtualDisplayItem.isSpawned(VirtualDisplayItem.java:249) ~[QuickShop-5.1.2.5.jar:?]
        at org.maxgamer.quickshop.watcher.DisplayAutoDespawnWatcher.run(DisplayAutoDespawnWatcher.java:82) ~[QuickShop-5.1.2.5.jar:?]
        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1481) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:449) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1395) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1172) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[pufferfish-1.20.1.jar:git-Pufferfish-"979d3a2"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]

Steps to reproduce

  1. enable display-auto-despawn
  2. observer console when shops are loaded

Expected Behaviour

Quickshop should not spam console.

Screenshots

image

/qs paste URL

https://paste.helpch.at/otizabavud

Additional Context

No response

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. Please use English next time.


Title: [BUG] display-auto-despawn warning console spam

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.