NPE in createShapedCustomRemedy #45


Open
Assigned to hmmcrunchys
  • SpigotSlimeDog created this issue Jun 12, 2023

    Spigot 1.20-3798

    Disease 4.2.0

     

    On server start-up

     

    [07:41:22] [Server thread/ERROR]: Error occurred while enabling Disease v4.2.0 (Is it up to date?)
    java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "object" is null
            at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftMetaItem.safelyAdd(CraftMetaItem.java:1343) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftMetaItem.setLore(CraftMetaItem.java:903) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at com.hmmcrunchy.disease.classes.Remedy.createShapedCustomRemedy(Remedy.java:105) ~[?:?]
            at com.hmmcrunchy.disease.classes.Remedy.activateRemedy(Remedy.java:78) ~[?:?]
            at com.hmmcrunchy.disease.System.DiseaseSettings.importRemedy(DiseaseSettings.java:255) ~[?:?]
            at com.hmmcrunchy.disease.System.DiseaseSettings.loadConfigData(DiseaseSettings.java:114) ~[?:?]
            at com.hmmcrunchy.disease.Disease.onEnable(Disease.java:158) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) ~[spigot-api-1.20-R0.1-SNAPSHOT.jar:?]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot-api-1.20-R0.1-SNAPSHOT.jar:?]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot-api-1.20-R0.1-SNAPSHOT.jar:?]
            at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:540) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:454) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:589) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:414) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:250) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:973) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.20-R0.1-SNAPSHOT.jar:3798-Spigot-7e2af8b-6962456]
            at java.lang.Thread.run(Thread.java:1623) ~[?:?]

     This error does not occur on Paper 1.20-10 with the same configuration and plugin constellation.

  • hmmcrunchys posted a comment Jun 12, 2023

    Will check that out - it could be the need to compile with 1.20

     

    typically 1.20 came out about 10 minutes after i released 1.19 version 😂


    Edited Jun 13, 2023
  • hmmcrunchys self-assigned this issue Jun 12, 2023

To post a comment, please login or register a new account.