Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7849

Serializing Food Item (null value in entry: using-converts-to=null)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • openjdk version "21.0.3" 2024-04-16 LTS
      OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
      OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)

      Ubuntu 22.04.3 LTS

    • CraftBukkit version 4273-Spigot-34bd42b-2c54749 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
    • SerializationTest
    • Yes

      Serializing an item using BukkitObjectOutputStream with the "can_always_eat" tag will trigger a NullPointerException. I am assuming other similar tags may cause the same issue.

      I provided a test plugin: simply run /serializationtest when holding an item with this tag in your hand. A plugin like ItemEdit can be used to apply this tag to the item quickly

      Thank you for your time ^^

        1. logs.txt
          5 kB
          TechnicallyCoded
        2. Screenshot 2024-07-25 at 3.31.00 PM.png
          38 kB
          TechnicallyCoded

            Doc Doc
            MathiasTech_jar TechnicallyCoded
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: