-
Notifications
You must be signed in to change notification settings - Fork 14
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
depositall - NullPointerException #19
Comments
Need the full stacktrace |
Need the full stacktrace. If that's all that's printing, that means the full stacktrace was printed before, so either restart server and reproduce or look further back in logs |
Thank you for the reply! You're right, here is the full stacktrace: |
Uhh...... What's this? Sentry isn't in AutomaticInventory... Nor is this an error on the command... |
Well the first part of the error is caused for some reason by Easybackup. The second part by AutomaticInventory. However, EasyBackup is not the trigger, but only another consequence. With EasyBackup deactivated one get the same error, but only the last part of the error message: https://pastebin.com/BAWASaQv |
Uh... Try reproducing without any other plugins installed? |
Yes, the same error occurs also without plugins and also with the newest AutomaticInventory version using Paper 1.14.4. |
Same error? Can you please paste the new stacktrace? |
The only difference is the thread number: https://pastebin.com/AHpdXKnB |
Line number is different to, which is what I was looking for. Thanks. Will prepare a debug version |
So ya that new stacktrace was helpful. Turns out the FindChestsThread will return null for Material if it searches out of bounds, but this null is never checked. There was no need to check before because Big_Scary's original code only checked if it was equal to a specific material, instead of calling a method on it. |
Thank you it works perfectly fine! |
If there are >= 8 blocks above a player >= 4 chests on top of each other, the following error occurs when sorting with depositall:
Thread-508/WARN]: Exception in thread "Thread-508" java.lang.NullPointerException
Screenshot: https://imgur.com/a/PPvar96
In all other constellations (lower height, fewer chests on top of each other) everything works fine.
AutomaticInventory 2.8.5
Paper 1.13.2 #648
The text was updated successfully, but these errors were encountered: