A NullPointerException occurs when handling the InventoryClickEvent in the AdvancedEnchantments plugin. The error is triggered because getCurrentItem() returns null, and the code does not handle this case before attempting to call the clone() method on the returned value.
Error Stack Trace:
https://mclo.gs/ZMPm8ET
FullLogs:
https://mclo.gs/LpSGJy0
How to reproduce
Install the AdvancedEnchantments plugin v9.8.9 on a Purpur 1.20.4 server.
Trigger an InventoryClickEvent by interacting with an inventory in the game.
Observe the server console for the NullPointerException error.
My server version: purpur 1.20.4 lastet builds
Describe the bug
A NullPointerException occurs when handling the InventoryClickEvent in the AdvancedEnchantments plugin. The error is triggered because getCurrentItem() returns null, and the code does not handle this case before attempting to call the clone() method on the returned value. Error Stack Trace: https://mclo.gs/ZMPm8ET FullLogs: https://mclo.gs/LpSGJy0
How to reproduce
Install the AdvancedEnchantments plugin v9.8.9 on a Purpur 1.20.4 server. Trigger an InventoryClickEvent by interacting with an inventory in the game. Observe the server console for the NullPointerException error. My server version: purpur 1.20.4 lastet builds
Screenshots / Videos
No response
"/ae plinfo" link
https://paste.md-5.net/jucuyatofa
Server Log
No response