CoreProtect

CoreProtect

1M Downloads

NullPointerException when killing a Citizens Player NPC

BBaoVanC opened this issue ยท 3 comments

commented

When I kill a Player NPC created with the Citizens plugin, CoreProtect throws a NullPointerException:

[02:00:10 WARN]: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Map.get(Object)" is null
[02:00:10 WARN]: 	at CoreProtect.jar//net.coreprotect.database.logger.PlayerKillLogger.log(PlayerKillLogger.java:31)
[02:00:10 WARN]: 	at CoreProtect.jar//net.coreprotect.consumer.process.PlayerKillProcess.process(PlayerKillProcess.java:15)
[02:00:10 WARN]: 	at CoreProtect.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:215)
[02:00:10 WARN]: 	at CoreProtect.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[02:00:10 WARN]: 	at java.base/java.lang.Thread.run(Unknown Source)

Versions:

  • Citizens 2.0.30-SNAPSHOT (build 2617)
  • CoreProtect v21.2
  • Database: MySQL (but I imagine this doesn't have any effect)
commented

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.

commented

This is still an issue

commented

Fixed in 319d104