-
Notifications
You must be signed in to change notification settings - Fork 43
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
RoseStacker v1.5.32-SNAPSHOT generated an exception while executing task 78 #142
Comments
Puppur 1.21.1 |
This is going to be impossible for me to reproduce on my own. There is no possible way for itemMeta to be null since there's a null check right before it's used. |
If you want to avoid the error you can disable stacked item nametags by setting display-tags to false under the global-item-settings section of the config.yml, otherwise I don't really have any other suggestions. |
if (itemMeta == null) { return; } if (itemMeta == "") { return; } if (itemMeta != null && itemMeta != "") { |
there is already a null check |
but null is not "" |
Disabled "display-tags", restarted server, but:
|
- Fixed: Error sucking items using RoseStacker |
Maybe you need to add same line if (itemMeta != null) I'm just guessing.. [Craft Scheduler Thread - 14 - RoseStacker/WARN]: [RoseStacker] Plugin RoseStacker v1.5.32-SNAPSHOT generated an exception while executing task 78 |
[05:42:22] [Craft Scheduler Thread - 2825 - RoseStacker/WARN]: [RoseStacker] Plugin RoseStacker v1.5.32-SNAPSHOT generated an exception while executing task 78 java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.meta.ItemMeta.hasItemName()" because "itemMeta" is null at RoseStacker-1.5.32-SNAPSHOT.jar/dev.rosewood.rosestacker.stack.StackedItem.updateDisplay(StackedItem.java:104) ~[RoseStacker-1.5.32-SNAPSHOT.jar:?] at RoseStacker-1.5.32-SNAPSHOT.jar/dev.rosewood.rosestacker.stack.StackingThread.tryStackItem(StackingThread.java:1088) ~[RoseStacker-1.5.32-SNAPSHOT.jar:?] at RoseStacker-1.5.32-SNAPSHOT.jar/dev.rosewood.rosestacker.stack.StackingThread.stackItems(StackingThread.java:220) ~[RoseStacker-1.5.32-SNAPSHOT.jar:?] at RoseStacker-1.5.32-SNAPSHOT.jar/dev.rosewood.rosestacker.lib.rosegarden.scheduler.RoseScheduler.lambda$wrap$0(RoseScheduler.java:158) ~[RoseStacker-1.5.32-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62] at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.21.1.jar:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
The text was updated successfully, but these errors were encountered: