Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-11788

Spawner that spawns zombie villagers that are being cured causes NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 1.5, Snapshot 13w11a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Game Mode:
      Creative

      Description

      I created a spawner that spawns zombie villagers that are being cured. When I open the world in minecraft, it crashes with an NPE.
      After investigating it in MCP, I found that it's caused by a zombie villager model in the spawner. It uses a dummy entity, with world (a.k.a. level) being set to null. But when a zombie starts curing, it accesses the world. A simple if (world != null) should fix it.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dieval DiEvAl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: